E - The type of the element being manipulated.public abstract class Manipulator<E> extends Iterator<E>
Iterator class by allowing the
manipulation of the collection's elements. Just like an iterator, a manipulator
points at the slots on either side of the elements in a collection.
[element 1] [element 2] [element 3] ... [element N]
^ ^ ^ ^ ^ ^
at start at end
| Constructor and Description |
|---|
Manipulator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
insertElement(E element)
This method inserts a new element in the slot currently pointed at by the manipulator.
|
abstract E |
removeNextElement()
This method removes the element after the slot where the manipulator is currently
pointing.
|
abstract E |
removePreviousElement()
This method removes the element before the slot where the manipulator is currently
pointing.
|
getNextElement, getPreviousElement, goToEnd, goToIndex, goToStart, hasNext, hasNextElement, hasPreviousElement, next, removepublic abstract void insertElement(E element)
element - The new element to be inserted.public abstract E removeNextElement()
public abstract E removePreviousElement()
Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.