java.util
Class TreeMap.SubMapKeySet<K,V>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<K>
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>
|
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 interface java.util.Set |
add, addAll, clear, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray |
subMap
TreeMap.SubMap<K,V> subMap
TreeMap.SubMapKeySet
TreeMap.SubMapKeySet(TreeMap.SubMap<K,V> map)
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
Please submit a feedback, bug or feature