Modifier and Type | Method and Description |
---|---|
NodeList.Node<T> |
next()
Gets the next
NodeList.Node in the NodeList . |
NodeList<T> |
owner()
Gets the
NodeList that contains the NodeList.Node . |
NodeList.Node<T> |
previous()
Gets the previous
NodeList.Node in the NodeList . |
void |
setValue(T value)
Sets the element stored in the
NodeList.Node . |
T |
value()
Gets the element stored in the
NodeList.Node . |
public NodeList.Node<T> next()
NodeList.Node
in the NodeList
.
Returns null
for the last NodeList.Node
, or for a NodeList.Node
that
has been removed from its NodeList
. This is an O(1) operation.NodeList.Node
in the NodeList
public NodeList<T> owner()
NodeList
that contains the NodeList.Node
.
Returns null
if the NodeList.Node
has been removed from its NodeList
.
Otherwise, returns the same valid object throughout the lifetime of the NodeList.Node
.NodeList
that contains the NodeList.Node
public NodeList.Node<T> previous()
NodeList.Node
in the NodeList
.
Returns null
for the first NodeList.Node
, or for a NodeList.Node
that
has been removed from its NodeList
. This is an O(1) operation.NodeList.Node
in the NodeList
public void setValue(T value)
NodeList.Node
.
Calling setValue(T)
will not cause existing iterators to throw
ConcurrentModificationException
as it involves no structural change.value
- the element stored in the NodeList.Node
java.lang.NullPointerException
- if value
is null
public T value()
NodeList.Node
.
Remains unchanged when a NodeList.Node
is removed from its NodeList
.NodeList.Node