Class TimeListImpl

java.lang.Object
org.loboevolution.html.dom.svgimpl.TimeListImpl
All Implemented Interfaces:
TimeList

public class TimeListImpl extends Object implements TimeList

TimeListImpl class.

  • Constructor Details

    • TimeListImpl

      public TimeListImpl(List<Time> times)

      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.