public interface ICollection<T>
IStoredList,
IOrderedList| Modifier and Type | Method and Description |
|---|---|
IObjectInfo<T> |
add(T subject)
Store an element in the list.
|
boolean |
contains(T obj)
Checks whether it contains the specified element.
|
IStoredListIterator<T> |
establishListScan(boolean random_scan)
establish a scan position.
|
default IStoredListIterator<T> |
establishListScan(boolean random_scan,
boolean alternatingThread)
establish a scan position.
|
boolean |
isEmpty()
Returns true if this list is empty, i.e.
|
boolean |
isMultiObjectCollection()
is it an actual multi object container.
|
IStoredListIterator<T> |
next(IStoredListIterator<T> slh)
Returns the next element in the scan order.
|
boolean |
removeByObject(T obj)
Given an element scan the list, find it and remove it.
|
int |
size()
Returns the amount of elements in the StoredList.
|
int size()
isEmpty()boolean isEmpty()
true if list is empty; false otherwise.IStoredListIterator<T> establishListScan(boolean random_scan)
random_scan - true enable random scan; false start from head.default IStoredListIterator<T> establishListScan(boolean random_scan, boolean alternatingThread)
random_scan - true enable random scan; false start from head.alternatingThread - true the result iter many be used by a not-same threadIStoredListIterator<T> next(IStoredListIterator<T> slh)
SLHolders subject.slh - Holder representing a pivot position.null if reached end of scan.IObjectInfo<T> add(T subject)
subject - element to store.null if
StoredList has been invalidated.boolean removeByObject(T obj)
obj - element to removetrue if object was removed; false otherwise (if element
wasn't found)boolean contains(T obj)
obj - the element to search fortrue if element exists in the StoredList; false otherwise.boolean isMultiObjectCollection()
true if its an actual list; false otherwiseCopyright © GigaSpaces.