Class HashedList.HashedListIterator
java.lang.Object
nom.tam.util.HashedList.HashedListIterator
- Enclosing class:
HashedList<VALUE extends CursorValue<String>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThis index points to the value that would be returned in the next 'next' call. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a keyed entry at the current location.voidAdd an unkeyed element to the collection.end()move to the last element and return that.booleanhasNext()booleanhasPrev()next()next(int count) Returns the count next element in the iteration.prev()voidremove()voidPoint the iterator to a particular keyed entry.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
current
private int currentThis index points to the value that would be returned in the next 'next' call.
-
-
Constructor Details
-
HashedListIterator
HashedListIterator(int start)
-
-
Method Details
-
add
Description copied from interface:CursorAdd a keyed entry at the current location. The new entry is inserted before the entry that would be returned in the next invocation of 'next'. The new element is placed such that it will be called by a prev() call, but not a next() call.The return value for that call is unaffected. Note: this method is not in the Iterator interface. -
add
Description copied from interface:CursorAdd an unkeyed element to the collection. The new element is placed such that it will be called by a prev() call, but not a next() call. -
end
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<VALUE extends CursorValue<String>>
-
hasPrev
-
next
-
next
-
prev
-
remove
public void remove()- Specified by:
removein interfaceIterator<VALUE extends CursorValue<String>>
-
setKey
Description copied from interface:CursorPoint the iterator to a particular keyed entry. Point to the end of the list if the key is not found.This method is not in the Iterator interface.
-