public interface IOrderedList<T> extends IStoredList<T>
Modifier and Type | Method and Description |
---|---|
IStoredListIterator<T> |
establishListOrderedScan(IObjectInfo<T> OrderedScanPivot,
boolean ascending)
establish a scan position in one direction ascending (towards head) or descending (towards
tail).
|
IObjectInfo<T> |
getLargerInOrder(IObjectInfo<T> ref)
In an ordered , get the element larger than ref.
|
IObjectInfo<T> |
getSmallerInOrder(IObjectInfo<T> ref)
In an ordered , get the element smaller than ref.
|
IObjectInfo<T> |
storeBeforeCeiling(IObjectInfo<T> ceiling,
T subject)
Given an ObjectInfo of an existing element, store a new element right "before" this one
(towards the tail).
|
addUnlocked, dump, freeSLHolder, getHead, getObjectFromHead, invalidate, optimizeScanForSingleObject, remove, removeUnlocked
add, contains, establishListScan, establishListScan, isEmpty, isMultiObjectCollection, next, removeByObject, size
getHashCode, getKey, getValue, isNativeHashEntry
isIterator
IStoredListIterator<T> establishListOrderedScan(IObjectInfo<T> OrderedScanPivot, boolean ascending)
OrderedScanPivot
- a pivot from which to start this scan. if null, pivot is
Head (if ascending is true); Tail otherwiseascending
- if true
scan from pivot towards head; if
false
scan from pivot towards tail.IObjectInfo<T> storeBeforeCeiling(IObjectInfo<T> ceiling, T subject)
ceiling
- a ceiling to the new element (towards the head); when null, the
ceiling will be the Head.subject
- a new element, to be inserted before the ceiling (towards the tail)Note: not relevant for random scans
RuntimeException
- if ceiling was already deletedIObjectInfo<T> getLargerInOrder(IObjectInfo<T> ref)
ref
- a reference to an OI (element in the )IObjectInfo<T> getSmallerInOrder(IObjectInfo<T> ref)
ref
- a reference to an OI (element in the )Copyright © GigaSpaces.