java.util
Class TreeMap.SubMapValuesCollection<K,V>
java.lang.Object
java.util.AbstractCollection<V>
java.util.TreeMap.SubMapValuesCollection<K,V>
- All Implemented Interfaces:
- Iterable<V>, Collection<V>
- Enclosing class:
- TreeMap<K,V>
static class TreeMap.SubMapValuesCollection<K,V>
- extends AbstractCollection<V>
|
Method Summary |
boolean |
isEmpty()
Returns true if the collection has no element, otherwise false. |
Iterator<V> |
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.AbstractCollection |
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
subMap
TreeMap.SubMap<K,V> subMap
TreeMap.SubMapValuesCollection
public TreeMap.SubMapValuesCollection(TreeMap.SubMap<K,V> subMap)
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<V>- Overrides:
isEmpty in class AbstractCollection<V>
- Returns:
- true if the collection has no element.
- See Also:
Collection.size()
iterator
public Iterator<V> 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<V>- Specified by:
iterator in interface Collection<V>- Specified by:
iterator in class AbstractCollection<V>
- Returns:
- an Iterator on the elements of this Collection
- See Also:
Iterator
size
public int size()
- Description copied from class:
AbstractCollection
- Returns the number of elements in this Collection.
- Specified by:
size in interface Collection<V>- Specified by:
size in class AbstractCollection<V>
- Returns:
- the number of elements in this Collection
Please submit a feedback, bug or feature