GNU Trove

gnu.trove
Class THashMap.KeyView

java.lang.Object
  |
  +--gnu.trove.THashMap.KeyView
All Implemented Interfaces:
java.util.Collection, java.util.Set
Direct Known Subclasses:
THashMap.EntryView, THashMap.ValueView
Enclosing class:
THashMap

protected class THashMap.KeyView
extends java.lang.Object
implements java.util.Set

a view onto the keys of the map.


Nested Class Summary
protected  class THashMap.KeyView.EntryIterator
           
 
Constructor Summary
protected THashMap.KeyView()
           
 
Method Summary
 boolean add(java.lang.Object obj)
           
 boolean addAll(java.util.Collection collection)
           
 void clear()
           
 boolean contains(java.lang.Object key)
           
 boolean containsAll(java.util.Collection collection)
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object key)
           
 boolean removeAll(java.util.Collection collection)
           
 boolean retainAll(java.util.Collection collection)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

THashMap.KeyView

protected THashMap.KeyView()
Method Detail

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Set

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Set
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.util.Set
Overrides:
equals in class java.lang.Object

remove

public boolean remove(java.lang.Object key)
Specified by:
remove in interface java.util.Set

contains

public boolean contains(java.lang.Object key)
Specified by:
contains in interface java.util.Set

containsAll

public boolean containsAll(java.util.Collection collection)
Specified by:
containsAll in interface java.util.Set

removeAll

public boolean removeAll(java.util.Collection collection)
Specified by:
removeAll in interface java.util.Set

clear

public void clear()
Specified by:
clear in interface java.util.Set

add

public boolean add(java.lang.Object obj)
Specified by:
add in interface java.util.Set

size

public int size()
Specified by:
size in interface java.util.Set

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Set

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)
Specified by:
toArray in interface java.util.Set

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Set

addAll

public boolean addAll(java.util.Collection collection)
Specified by:
addAll in interface java.util.Set

retainAll

public boolean retainAll(java.util.Collection collection)
Specified by:
retainAll in interface java.util.Set

GNU Trove

GNU Trove is copyright 2001-2003 Eric D. Friedman. All Rights Reserved.