public class LazyLoadItemSet<E> extends Object implements Set<E>, 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(Set<PK> prefetchLanguages,
List<PK> pks,
int prefetchSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object object) |
protected int |
getPosition(Object object) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isModifiable() |
Iterator<E> |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
void |
setModifiable(boolean modifiable) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streampublic int size()
public boolean equals(Object object)
public int hashCode()
public boolean contains(Object object)
public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean add(E object)
public boolean addAll(Collection<? extends E> collection)
public void clear()
public boolean isEmpty()
public boolean remove(Object object)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public Object[] toArray()
public <T> T[] toArray(T[] array)
protected int getPosition(Object object)
public boolean isModifiable()
public void setModifiable(boolean modifiable)
modifiable - the modifiable to setCopyright © 2017 SAP SE. All Rights Reserved.