Oracle® Coherence Java API Reference
v3.5.3

E15583-01

com.tangosol.util
Class RestrictedCollections.RestrictedEntrySet.RestrictedIterator

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.RestrictedCollections.RestrictedEntrySet.RestrictedIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
RestrictedCollections.RestrictedEntrySet

protected class RestrictedCollections.RestrictedEntrySet.RestrictedIterator
extends Base
implements java.util.Iterator

A Map Entry Iterator that restricts the key and value types.


Field Summary
protected  java.util.Iterator m_iter
           
 
Constructor Summary
RestrictedCollections.RestrictedEntrySet.RestrictedIterator(java.util.Iterator iter)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified object with this Iterator for equality.
 int hashCode()
          Returns the hash code value for this Iterator.
 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.
 java.lang.String toString()
          Return a String description for this Iterator.
 

Field Detail

m_iter

protected java.util.Iterator m_iter
Constructor Detail

RestrictedCollections.RestrictedEntrySet.RestrictedIterator

public RestrictedCollections.RestrictedEntrySet.RestrictedIterator(java.util.Iterator iter)
Constructor.

Parameters:
iter - the Iterator to wrap
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

remove

public void remove()
Removes from the underlying collection the last element returned by the iterator.

Specified by:
remove in interface java.util.Iterator

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this Iterator for equality.

Parameters:
o - object to be compared for equality with this Iterator
Returns:
true if the specified object is equal to this Iterator

hashCode

public int hashCode()
Returns the hash code value for this Iterator.

Returns:
the hash code value for this Iterator

toString

public java.lang.String toString()
Return a String description for this Iterator.

Returns:
a String description of the Iterator

Oracle® Coherence Java API Reference
v3.5.3

E15583-01

Copyright © 2000, 2010, Oracle. All rights reserved.