Enum ListActivityRepository.IteratorType

java.lang.Object
java.lang.Enum<ListActivityRepository.IteratorType>
com.flexganttfx.model.repository.ListActivityRepository.IteratorType
Alle implementierten Schnittstellen:
Serializable, Comparable<ListActivityRepository.IteratorType>
Umschließende Klasse:
ListActivityRepository<A extends Activity>

public static enum ListActivityRepository.IteratorType extends Enum<ListActivityRepository.IteratorType>
A list of possible iterators that the repository can return when the application queries the repository for the activities within a given time interval.
Seit:
1.0
  • Enum-Konstanten - Details

    • SIMPLE_ITERATOR

      public static final ListActivityRepository.IteratorType SIMPLE_ITERATOR
      Causes the repository to return the normal list iterator ( List.iterator()), which means that the repository will always return all activities independent of whether they are located within the given time interval.
      Seit:
      1.0
    • BINARY_ITERATOR

      public static final ListActivityRepository.IteratorType BINARY_ITERATOR
      Causes the repository to return an instance of type ListActivityRepository.BinarySearchActivityIterator. This type of iterator performs a log-n binary search to find only those activities that are located within the given time interval.
      Seit:
      1.0
    • LINEAR_ITERATOR

      public static final ListActivityRepository.IteratorType LINEAR_ITERATOR
      Causes the repository to return an instance of type ListActivityRepository.LinearSearchActivityIterator. This type of iterator performs a left to right (index = 0 to n) within the underlying list to find the first visible activity inside the given time interval. The iterator stops once it reaches an activity with a start time after the given time interval.
  • Methodendetails

    • values

      public static ListActivityRepository.IteratorType[] values()
      Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
    • valueOf

      public static ListActivityRepository.IteratorType valueOf(String name)
      Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird