Interface TimeList

All Known Implementing Classes:
TimeListImpl

public interface TimeList
The TimeList interface provides the abstraction of an ordered collection of times, without defining or constraining how this collection is implemented. The items in the TimeList are accessible via an integral index, starting from 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of times in the list.
    item(int index)
    Returns the index th item in the collection.
  • Method Details

    • item

      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 .
      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.
    • getLength

      int getLength()
      The number of times in the list. The range of valid child time indices is 0 to length-1 inclusive.
      Returns:
      a Integer object.