public class ImmutableDomainObjectSet<T> extends AbstractSet<T> implements DomainObjectSet<T>
| Constructor and Description |
|---|
ImmutableDomainObjectSet(Iterable<? extends T> elements) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getAll()
Returns the elements of this set as a list, in iteration order of this set.
|
T |
getAt(int index)
Returns the element of this set at the given index in iteration order of this set.
|
Iterator<T> |
iterator() |
int |
size() |
equals, hashCode, removeAlladd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringpublic int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public T getAt(int index) throws IndexOutOfBoundsException
DomainObjectSetgetAt in interface DomainObjectSet<T>index - The index of the element to get.IndexOutOfBoundsExceptionpublic List<T> getAll()
DomainObjectSetgetAll in interface DomainObjectSet<T>Copyright © 2013. All rights reserved