public class OffsetOrdinalSetMapping<T> extends Object implements OrdinalSetMapping<T>
Modifier and Type | Method and Description |
---|---|
int |
add(T o)
Add an Object to the set of mapped objects.
|
int |
getMappedIndex(Object o) |
T |
getMappedObject(int n) |
int |
getMaximumIndex() |
int |
getSize() |
boolean |
hasMappedIndex(T o) |
Iterator<T> |
iterator() |
static <T> OffsetOrdinalSetMapping<T> |
make(int offset) |
static <T> OffsetOrdinalSetMapping<T> |
make(OrdinalSetMapping<T> delegate,
int offset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int getMaximumIndex()
getMaximumIndex
in interface OrdinalSetMapping<T>
public int getSize()
getSize
in interface OrdinalSetMapping<T>
public static <T> OffsetOrdinalSetMapping<T> make(OrdinalSetMapping<T> delegate, int offset)
public static <T> OffsetOrdinalSetMapping<T> make(int offset)
public int add(T o)
OrdinalSetMapping
add
in interface OrdinalSetMapping<T>
public int getMappedIndex(Object o)
getMappedIndex
in interface OrdinalSetMapping<T>
public T getMappedObject(int n) throws NoSuchElementException
getMappedObject
in interface OrdinalSetMapping<T>
NoSuchElementException
public boolean hasMappedIndex(T o)
hasMappedIndex
in interface OrdinalSetMapping<T>