-
Constructor Summary 
Constructors
Constructor for TimeListImpl.
-
Method Summary 
int
The number of times in the list.
Returns the index th item in the collection.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
TimeListImpl 
Constructor for TimeListImpl.
- Parameters:
times
- a List
object.
-
Method Details 
-
getLength 
public int getLength()
The number of times in the list. The range of valid child time indices is
0 to length-1 inclusive.
- Specified by:
getLength
in interface TimeList
- Returns:
- a
Integer
object.
-
item 
public Time item(int index)
Returns the index th item in the collection. If
index is greater than or equal to the number of times in the
list, this returns null .
- Specified by:
item
in interface TimeList
- Parameters:
index
- Index into the collection.
- Returns:
- The time at the index th position in the
TimeList , or null if that is not a
valid index.