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() |
Stream<T> |
stream()
Stream over mapped objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ObjectArrayMapping(T[] array)
public T getMappedObject(int n) throws NoSuchElementException
getMappedObject in interface OrdinalSetMapping<T>NoSuchElementExceptionpublic int getMappedIndex(Object o)
getMappedIndex in interface OrdinalSetMapping<T>public boolean hasMappedIndex(Object o)
hasMappedIndex in interface OrdinalSetMapping<T>public Stream<T> stream()
OrdinalSetMappingstream in interface OrdinalSetMapping<T>public int add(Object o) throws UnimplementedError
OrdinalSetMappingadd in interface OrdinalSetMapping<T>UnimplementedErrorpublic int getMaximumIndex()
getMaximumIndex in interface OrdinalSetMapping<T>public int getSize()
getSize in interface OrdinalSetMapping<T>