Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-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:
Iterator
Enclosing class:
RestrictedCollections.RestrictedEntrySet

protected class RestrictedCollections.RestrictedEntrySet.RestrictedIterator
extends Base
implements Iterator

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


Field Summary
protected  Iterator m_iter
           

 

Constructor Summary
RestrictedCollections.RestrictedEntrySet.RestrictedIterator(Iterator iter)
          Constructor.

 

Method Summary
 boolean equals(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.
 Object next()
          Returns the next element in the interation.
 void remove()
          Removes from the underlying collection the last element returned by the iterator.
 String toString()
          Return a String description for this Iterator.

 

Field Detail

m_iter

protected Iterator m_iter

Constructor Detail

RestrictedCollections.RestrictedEntrySet.RestrictedIterator

public RestrictedCollections.RestrictedEntrySet.RestrictedIterator(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 Iterator
Returns:
true if the iterator has more elements

next

public Object next()
Returns the next element in the interation.
Specified by:
next in interface 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 Iterator

equals

public boolean equals(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 String toString()
Return a String description for this Iterator.
Returns:
a String description of the Iterator

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


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