Class SerializableListIteratorImpl<T>

  • Type Parameters:
    T - The type of the instances managed by the ListIterator.
    All Implemented Interfaces:
    java.io.Serializable, java.util.Iterator<T>, java.util.ListIterator<T>


    public class SerializableListIteratorImpl<T>
    extends java.lang.Object
    implements java.util.ListIterator<T>, java.io.Serializable
    Makes the wrapped ListIterator serializable, else passing ListIterator instances would cause an NotSerializableException or similar. Use the SerializeUtility.toSerializable(Object) to let you help to get serializable instances.
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializableListIteratorImpl

        public SerializableListIteratorImpl​()
        Instantiates a new serializable list iterator impl.
      • SerializableListIteratorImpl

        public SerializableListIteratorImpl​(java.util.ListIterator<T> aListIterator)
        Instantiates a new serializable list iterator impl.
        Parameters:
        aListIterator - the list iterator
    • Method Detail

      • add

        public void add​(T value)
        Specified by:
        add in interface java.util.ListIterator<T>
      • hasNext

        public boolean hasNext​()
        Specified by:
        hasNext in interface java.util.Iterator<T>
        Specified by:
        hasNext in interface java.util.ListIterator<T>
      • hasPrevious

        public boolean hasPrevious​()
        Specified by:
        hasPrevious in interface java.util.ListIterator<T>
      • next

        public T next​()
        Specified by:
        next in interface java.util.Iterator<T>
        Specified by:
        next in interface java.util.ListIterator<T>
      • nextIndex

        public int nextIndex​()
        Specified by:
        nextIndex in interface java.util.ListIterator<T>
      • previous

        public T previous​()
        Specified by:
        previous in interface java.util.ListIterator<T>
      • previousIndex

        public int previousIndex​()
        Specified by:
        previousIndex in interface java.util.ListIterator<T>
      • remove

        public void remove​()
        Specified by:
        remove in interface java.util.Iterator<T>
        Specified by:
        remove in interface java.util.ListIterator<T>
      • set

        public void set​(T value)
        Specified by:
        set in interface java.util.ListIterator<T>