Build 1.0_r1(from source)

java.util
Class IdentityHashMap.IdentityHashMapEntrySet<KT,VT>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<Map.Entry<KT,VT>>
          extended by java.util.IdentityHashMap.IdentityHashMapEntrySet<KT,VT>
All Implemented Interfaces:
Iterable<Map.Entry<KT,VT>>, Collection<Map.Entry<KT,VT>>, Set<Map.Entry<KT,VT>>
Enclosing class:
IdentityHashMap<K,V>

static class IdentityHashMap.IdentityHashMapEntrySet<KT,VT>
extends AbstractSet<Map.Entry<KT,VT>>


Constructor Summary
IdentityHashMap.IdentityHashMapEntrySet(IdentityHashMap<KT,VT> hm)
           
 
Method Summary
 void clear()
          Removes all the elements in this collection.
 boolean contains(Object object)
          Searches this Collection for the specified object.
(package private)  IdentityHashMap<KT,VT> hashMap()
           
 Iterator<Map.Entry<KT,VT>> iterator()
          Returns an Iterator on the elements of this Collection.
 boolean remove(Object object)
          Removes the first occurrence of the specified object from this Collection.
 int size()
          Returns the number of elements in this Collection.
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray
 

Constructor Detail

IdentityHashMap.IdentityHashMapEntrySet

public IdentityHashMap.IdentityHashMapEntrySet(IdentityHashMap<KT,VT> hm)
Method Detail

hashMap

IdentityHashMap<KT,VT> hashMap()

size

public int size()
Description copied from class: AbstractCollection
Returns the number of elements in this Collection.

Specified by:
size in interface Collection<Map.Entry<KT,VT>>
Specified by:
size in interface Set<Map.Entry<KT,VT>>
Specified by:
size in class AbstractCollection<Map.Entry<KT,VT>>
Returns:
the number of elements in this Collection

clear

public void clear()
Description copied from class: AbstractCollection
Removes all the elements in this collection. This collection will be cleared up after this operation. The operation iterates over the collection, removes every element using Iterator.remove method. UnsupportedOperationException will be thrown out if the iterator returned by this collection does not implement the remove method and the collection is not zero length.

Specified by:
clear in interface Collection<Map.Entry<KT,VT>>
Specified by:
clear in interface Set<Map.Entry<KT,VT>>
Overrides:
clear in class AbstractCollection<Map.Entry<KT,VT>>
See Also:
Collection.isEmpty(), Collection.size()

remove

public boolean remove(Object object)
Description copied from class: AbstractCollection
Removes the first occurrence of the specified object from this Collection. This operation traverses over the collection, looking for the specified object. Once the object is found, the object will be removed from the collection using the iterator's remove method. This collection will throw an UnsupportedOperationException if the iterator returned does not implement remove method, and the specified object is in this collection.

Specified by:
remove in interface Collection<Map.Entry<KT,VT>>
Specified by:
remove in interface Set<Map.Entry<KT,VT>>
Overrides:
remove in class AbstractCollection<Map.Entry<KT,VT>>
Parameters:
object - the object to remove
Returns:
true if this Collection is modified, false otherwise

contains

public boolean contains(Object object)
Description copied from class: AbstractCollection
Searches this Collection for the specified object.

Specified by:
contains in interface Collection<Map.Entry<KT,VT>>
Specified by:
contains in interface Set<Map.Entry<KT,VT>>
Overrides:
contains in class AbstractCollection<Map.Entry<KT,VT>>
Parameters:
object - the object to search for
Returns:
true if object is an element of this Collection, false otherwise

iterator

public Iterator<Map.Entry<KT,VT>> iterator()
Description copied from class: AbstractCollection
Returns an Iterator on the elements of this Collection. A subclass must implement the abstract methods iterator() and size().

Specified by:
iterator in interface Iterable<Map.Entry<KT,VT>>
Specified by:
iterator in interface Collection<Map.Entry<KT,VT>>
Specified by:
iterator in interface Set<Map.Entry<KT,VT>>
Specified by:
iterator in class AbstractCollection<Map.Entry<KT,VT>>
Returns:
an Iterator on the elements of this Collection
See Also:
Iterator

Build 1.0_r1(from source)

Please submit a feedback, bug or feature