|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.AbstractCollection
com.tangosol.util.SortedBag
com.tangosol.util.SortedBag.ViewBag
protected class SortedBag.ViewBag
A range-limited view of the SortedBag. This view is backed by the SortedBag, so any modifications made to it are visible to the underlying bag, and vice-versa.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tangosol.util.SortedBag |
|---|
SortedBag.UniqueElement, SortedBag.ViewBag, SortedBag.WrapperComparator |
| Field Summary | |
|---|---|
protected java.lang.Object |
f_oFromThe (inclusive) lower bound of this view. |
protected java.lang.Object |
f_oToThe (exclusive) upper bound of this view. |
| Fields inherited from class com.tangosol.util.SortedBag |
|---|
m_atomicNonce, m_comparator, m_map, NO_VALUE |
| Constructor Summary | |
|---|---|
SortedBag.ViewBag(java.lang.Object oFrom, java.lang.Object oTo)Construct a view of the SortedBag, constrained to the range [oFrom, oTo). |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o) |
protected void |
checkRange(java.lang.Object o)Check that the specified object is within the range of this view. |
SortedBag |
headBag(java.lang.Object toElement)Returns a view of the portion of this bag whose elements are strictly less than toElement. |
SortedBag |
subBag(java.lang.Object fromElement, java.lang.Object toElement)Returns a view of the portion of this bag whose elements range from fromElement, inclusive, to toElement, exclusive. |
SortedBag |
tailBag(java.lang.Object fromElement)Returns a view of the portion of this bag whose elements are greater than or equal to fromElement. |
| Methods inherited from class com.tangosol.util.SortedBag |
|---|
contains, first, getComparator, getInternalMap, getNonceCounter, instantiateInternalMap, isEmpty, iterator, last, remove, removeFirst, removeLast, size, unwrap, wrap |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, clear, containsAll, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Field Detail |
|---|
protected final java.lang.Object f_oFrom
protected final java.lang.Object f_oTo
| Constructor Detail |
|---|
public SortedBag.ViewBag(java.lang.Object oFrom,
java.lang.Object oTo)
oFrom - the "from" element (inclusive), or nulloTo - the "to" element (exclusive), or null| Method Detail |
|---|
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in class SortedBag
public SortedBag subBag(java.lang.Object fromElement,
java.lang.Object toElement)
The returned bag will throw an IllegalArgumentException on an attempt to insert an element outside its range.
subBag in class SortedBagfromElement - low endpoint (inclusive) of the returned bagtoElement - high endpoint (exclusive) of the returned bagpublic SortedBag headBag(java.lang.Object toElement)
The returned bag will throw an IllegalArgumentException on an attempt to insert an element outside its range.
headBag in class SortedBagtoElement - high endpoint (exclusive) of the returned bagpublic SortedBag tailBag(java.lang.Object fromElement)
The returned bag will throw an IllegalArgumentException on an attempt to insert an element outside its range.
tailBag in class SortedBagfromElement - low endpoint (inclusive) of the returned bagprotected void checkRange(java.lang.Object o)
o - the object to check
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||