Build 1.0_r1(from source)

java.util
Class TreeMap.SubMapKeySet<K,V>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<K>
          extended by java.util.TreeMap.SubMapKeySet<K,V>
All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
Enclosing class:
TreeMap<K,V>

static class TreeMap.SubMapKeySet<K,V>
extends AbstractSet<K>
implements Set<K>


Field Summary
(package private)  TreeMap.SubMap<K,V> subMap
           
 
Constructor Summary
TreeMap.SubMapKeySet(TreeMap.SubMap<K,V> map)
           
 
Method Summary
 boolean contains(Object object)
          Searches this Collection for the specified object.
 boolean isEmpty()
          Returns true if the collection has no element, otherwise false.
 Iterator<K> iterator()
          Returns an Iterator on the elements of 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, clear, containsAll, remove, 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, clear, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

subMap

TreeMap.SubMap<K,V> subMap
Constructor Detail

TreeMap.SubMapKeySet

TreeMap.SubMapKeySet(TreeMap.SubMap<K,V> map)
Method Detail

contains

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

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

isEmpty

public boolean isEmpty()
Description copied from class: AbstractCollection
Returns true if the collection has no element, otherwise false.

Specified by:
isEmpty in interface Collection<K>
Specified by:
isEmpty in interface Set<K>
Overrides:
isEmpty in class AbstractCollection<K>
Returns:
true if the collection has no element.
See Also:
Collection.size()

size

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

Specified by:
size in interface Collection<K>
Specified by:
size in interface Set<K>
Specified by:
size in class AbstractCollection<K>
Returns:
the number of elements in this Collection

iterator

public Iterator<K> 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<K>
Specified by:
iterator in interface Collection<K>
Specified by:
iterator in interface Set<K>
Specified by:
iterator in class AbstractCollection<K>
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