Package eu.bandm.tools.ops
Class EnumIndex<T extends Enum<T>>
java.lang.Object
eu.bandm.tools.ops.EnumIndex<T>
- All Implemented Interfaces:
Index<T>
,Serializable
,Iterable<T>
Wraps an enumeration class to get all the access methods to the enums values, as
defined by
Index
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.ops.Index
comparator, enumerate, isEmpty
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EnumIndex
-
-
Method Details
-
iterator
-
size
public int size()Description copied from interface:Index
Returns the number of objects in this index. This number is nonnegative. -
get
Description copied from interface:Index
Returns the object associated with a given number. -
contains
-
containsUnchecked
- Specified by:
containsUnchecked
in interfaceIndex<T extends Enum<T>>
-
indexOf
-
indexOfUnchecked
- Specified by:
indexOfUnchecked
in interfaceIndex<T extends Enum<T>>
-