Class Constraints.ConstrainedListIterator<E>

    • Field Detail

      • delegate

        private final java.util.ListIterator<E> delegate
      • constraint

        private final Constraint<? super E> constraint
    • Constructor Detail

      • ConstrainedListIterator

        public ConstrainedListIterator​(java.util.ListIterator<E> delegate,
                                       Constraint<? super E> constraint)
    • Method Detail

      • delegate

        protected java.util.ListIterator<E> delegate()
        Description copied from class: ForwardingObject
        Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
        Specified by:
        delegate in class ForwardingListIterator<E>
      • add

        public void add​(E element)
        Specified by:
        add in interface java.util.ListIterator<E>
        Overrides:
        add in class ForwardingListIterator<E>
      • set

        public void set​(E element)
        Specified by:
        set in interface java.util.ListIterator<E>
        Overrides:
        set in class ForwardingListIterator<E>