|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaggedOrderedCollection<T,E>
A tagged variation of the OrderedCollection ADT
Method Summary | |
---|---|
Locator<TaggedElement<T,E>> |
iteratorAtEnd()
Returns a locator that has been initialized to AFT. |
TaggedElement<T,E> |
max()
Returns a tagged element for the greatest tag in the collection (according to the comparator). |
TaggedElement<T,E> |
min()
Returns a tagged element for the least tag in the collection (according to the comparator). |
T |
predecessor(T tag)
Returns the largest tag used by some tagged element in the collection that is less than tag . |
T |
successor(T tag)
Returns smallest tag used by some tagged element in the collection that is greater than tag . |
Methods inherited from interface goldman.collection.tagged.TaggedCollection |
---|
accept, clear, contains, elements, ensureCapacity, get, getCapacity, getLocator, getSize, isEmpty, iterator, put, putAll, remove, tags, toString, trimToSize, values |
Method Detail |
---|
TaggedElement<T,E> min()
NoSuchElementException
when the collection is empty.
TaggedElement<T,E> max()
NoSuchElementException
when the collection is empty.
T predecessor(T tag)
tag
. It does
not require that tag
is in use. It throws
a NoSuchElementException
when there is no
tag in the collection less than tag
.
T successor(T tag)
tag
. It
does not require that tag
is in use. It throws
NoSuchElementException
when there is no tag used in the collection
greater than tag
.
Locator<TaggedElement<T,E>> iteratorAtEnd()
iterator
method, this method enables
navigation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |