Package generic.stl

Class ReverseSetIterator<T>

java.lang.Object
generic.stl.SetIterator<T>
generic.stl.ReverseSetIterator<T>
All Implemented Interfaces:
IteratorSTL<T>

public class ReverseSetIterator<T> extends SetIterator<T>
  • Method Details

    • copy

      public IteratorSTL<T> copy()
      Description copied from interface: IteratorSTL
      Creates a copy of this iterator.
      Specified by:
      copy in interface IteratorSTL<T>
      Overrides:
      copy in class SetIterator<T>
      Returns:
      a copy of this iterator.
    • increment

      public IteratorSTL<T> increment()
      Description copied from interface: IteratorSTL
      Advances the iterator to the next position.
      Specified by:
      increment in interface IteratorSTL<T>
      Overrides:
      increment in class SetIterator<T>
      Returns:
      a reference to the iterator itself
    • decrement

      public IteratorSTL<T> decrement()
      Description copied from interface: IteratorSTL
      Devance the iterator to the previous position. This method is only supported in bidirectional iterators.
      Specified by:
      decrement in interface IteratorSTL<T>
      Overrides:
      decrement in class SetIterator<T>
      Returns:
      a reference to the iterator itself
    • delete

      public void delete()
    • isBegin

      public boolean isBegin()
      Description copied from interface: IteratorSTL
      Returns true if the iterator is positioned on the first first element of the collection. If the collection is empty, this will always return false.
      Specified by:
      isBegin in interface IteratorSTL<T>
      Overrides:
      isBegin in class SetIterator<T>
      Returns:
      true if the iterator is positioned on the first element of the collection.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class SetIterator<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class SetIterator<T>