TV-Browser 2.7.5 API

newsplugin
Class NewsList

java.lang.Object
  extended by newsplugin.NewsList

public class NewsList
extends Object

A class with the news in a backward time sorted list.

Author:
René Mach

Field Summary
(package private)  ArrayList<News> mList
           
 
Constructor Summary
NewsList()
           
 
Method Summary
 void add(News news)
          Adds a news sorted into the list.
 long getLastNewsTime(long defaultValue)
          Gets the last news time.
 ArrayList<News> getList()
          Gets the ArrayList with the news.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mList

ArrayList<News> mList
Constructor Detail

NewsList

public NewsList()
Method Detail

add

public void add(News news)
Adds a news sorted into the list.

Parameters:
news - The news to add.

getList

public ArrayList<News> getList()
Gets the ArrayList with the news.

Returns:
The ArrayList with the news

getLastNewsTime

public long getLastNewsTime(long defaultValue)
Gets the last news time.

Parameters:
defaultValue - The default value to return if there are no news.
Returns:
The last news time.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)