public class LazyLoadItemSet<E>
extends java.lang.Object
implements java.util.Set<E>, java.io.Serializable
LazyLoadItemList which simply wraps a load item list and in addition ensures uniqueness
when adding new items to the set.
Please note that the sort order is based upon the item pk insert order only. If a new item is inserted it is simply
added at last position.
Also note that the comparator should not be used outside of this set instance since it compares items by their
position within this set.| Constructor and Description |
|---|
LazyLoadItemSet() |
LazyLoadItemSet(java.util.Set<PK> prefetchLanguages,
java.util.List<PK> pks,
int prefetchSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> collection) |
boolean |
equals(java.lang.Object object) |
protected int |
getPosition(java.lang.Object object) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isModifiable() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
retainAll(java.util.Collection<?> collection) |
void |
setModifiable(boolean modifiable) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public java.util.Iterator<E> iterator()
public int size()
public boolean equals(java.lang.Object object)
public int hashCode()
public boolean contains(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> collection)
public boolean add(E object)
public boolean addAll(java.util.Collection<? extends E> collection)
public void clear()
public boolean isEmpty()
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
protected int getPosition(java.lang.Object object)
public boolean isModifiable()
public void setModifiable(boolean modifiable)
modifiable - the modifiable to setCopyright © 2018 SAP SE. All Rights Reserved.