Class LinkSet.EndIterator

java.lang.Object
ucar.unidata.data.sounding.LinkSet.EndIterator
All Implemented Interfaces:
Iterator
Enclosing class:
LinkSet

protected static class LinkSet.EndIterator extends Object implements Iterator
A wrapper around the iterator of the keyset of a Map
  • Constructor Details

    • EndIterator

      public EndIterator(Map map)
      Create an EndIterator for the given Map.
      Parameters:
      map - map for iterator
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if there are more items
    • next

      public Object next()
      Returns the next element in the interation.
      Specified by:
      next in interface Iterator
      Returns:
      the next element in the interation.
    • remove

      public void remove() throws UnsupportedOperationException
      Removes from the underlying collection the last element returned by the iterator (optional operation). Not supported in this implementation
      Specified by:
      remove in interface Iterator
      Throws:
      UnsupportedOperationException - always (not supported)