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