static class Constraints.ConstrainedListIterator<E> extends ForwardingListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
private Constraint<? super E> |
constraint |
private java.util.ListIterator<E> |
delegate |
| Constructor and Description |
|---|
ConstrainedListIterator(java.util.ListIterator<E> delegate,
Constraint<? super E> constraint) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element) |
protected java.util.ListIterator<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
void |
set(E element) |
hasPrevious, nextIndex, previous, previousIndexhasNext, next, removetoStringprivate final java.util.ListIterator<E> delegate
private final Constraint<? super E> constraint
public ConstrainedListIterator(java.util.ListIterator<E> delegate, Constraint<? super E> constraint)
protected java.util.ListIterator<E> delegate()
ForwardingObjectForwardingSet.delegate(). Concrete subclasses override this method to supply
the instance being decorated.delegate in class ForwardingListIterator<E>public void add(E element)
add in interface java.util.ListIterator<E>add in class ForwardingListIterator<E>public void set(E element)
set in interface java.util.ListIterator<E>set in class ForwardingListIterator<E>