public class ImmutableDomainObjectSet<T> extends java.util.AbstractSet<T> implements DomainObjectSet<T>
| Constructor and Description |
|---|
ImmutableDomainObjectSet(java.lang.Iterable<? extends T> elements) |
| Modifier and Type | Method and Description |
|---|---|
java.util.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.
|
java.util.Iterator<T> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringpublic ImmutableDomainObjectSet(java.lang.Iterable<? extends T> elements)
public java.util.Iterator<T> iterator()
public int size()
public T getAt(int index) throws java.lang.IndexOutOfBoundsException
DomainObjectSetgetAt in interface DomainObjectSet<T>index - The index of the element to get.java.lang.IndexOutOfBoundsExceptionpublic java.util.List<T> getAll()
DomainObjectSetgetAll in interface DomainObjectSet<T>Copyright © 2013. All rights reserved