Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Class SubSet.SubSetIterator

java.lang.Object
  extended by com.tangosol.util.SubSet.SubSetIterator

All Implemented Interfaces:
java.util.Iterator
Enclosing class:
SubSet

protected class SubSet.SubSetIterator
extends java.lang.Object
implements java.util.Iterator

Iterator for the contents of a subset.


Constructor Summary
protected SubSet.SubSetIterator()
          Construct an iterator for a subset.

 

Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 java.lang.Object next()
          Returns the next element in the interation.
 void remove()
          Removes from the underlying Collection the last element returned by the Iterator .

 

Constructor Detail

SubSet.SubSetIterator

protected SubSet.SubSetIterator()
Construct an iterator for a subset.

Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more elements.
Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
Returns the next element in the interation.
Specified by:
next in interface java.util.Iterator
Returns:
the next element in the iteration.
Throws:
java.util.NoSuchElementException - iteration has no more elements.

remove

public void remove()
Removes from the underlying Collection the last element returned by the Iterator . This method can be called only once per call to next The behavior of an Iterator is unspecified if the underlying Collection is modified while the iteration is in progress in any way other than by calling this method. Optional operation.
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.IllegalStateException - next has not yet been called, or remove has already been called after the last call to next.

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.