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 - Übersicht
Enum-KonstantenEnum-KonstanteBeschreibungCauses the repository to return an instance of typeListActivityRepository.BinarySearchActivityIterator.Causes the repository to return an instance of typeListActivityRepository.LinearSearchActivityIterator.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. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungGibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.static ListActivityRepository.IteratorType[]values()Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
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
Causes the repository to return an instance of typeListActivityRepository.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
Causes the repository to return an instance of typeListActivityRepository.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
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
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ältNullPointerException- wenn das Argument nicht angegeben wird
-