ucar.unidata.data.sounding
Class LinkSet.EndIterator

java.lang.Object
  extended by 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 Summary
LinkSet.EndIterator(Map map)
          Create an EndIterator for the given Map.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Object next()
          Returns the next element in the interation.
 void remove()
          Removes from the underlying collection the last element returned by the iterator (optional operation).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkSet.EndIterator

public LinkSet.EndIterator(Map map)
Create an EndIterator for the given Map.

Parameters:
map - map for iterator
Method Detail

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)