it.unimi.dsi.fastutil.objects
Class AbstractObject2ShortSortedMap.ValuesCollection
java.lang.Object
java.util.AbstractCollection<Short>
it.unimi.dsi.fastutil.shorts.AbstractShortCollection
it.unimi.dsi.fastutil.objects.AbstractObject2ShortSortedMap.ValuesCollection
- All Implemented Interfaces:
- ShortCollection, ShortIterable, Iterable<Short>, Collection<Short>
- Enclosing class:
- AbstractObject2ShortSortedMap<K>
protected class AbstractObject2ShortSortedMap.ValuesCollection
- extends AbstractShortCollection
A wrapper exhibiting the values of a map.
| Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortCollection |
add, add, addAll, addAll, contains, containsAll, containsAll, isEmpty, rem, rem, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, toArray, toArray, toArray, toShortArray, toShortArray, toString |
AbstractObject2ShortSortedMap.ValuesCollection
protected AbstractObject2ShortSortedMap.ValuesCollection()
iterator
public ShortIterator iterator()
- Description copied from interface:
ShortCollection
- Returns a type-specific iterator on the elements of this collection.
Note that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
- Specified by:
iterator in interface ShortCollection- Specified by:
iterator in interface ShortIterable- Specified by:
iterator in interface Iterable<Short>- Specified by:
iterator in interface Collection<Short>- Specified by:
iterator in class AbstractShortCollection
- Returns:
- a type-specific iterator on the elements of this collection.
contains
public boolean contains(short k)
- Specified by:
contains in interface ShortCollection- Overrides:
contains in class AbstractShortCollection
- See Also:
Collection.contains(Object)
size
public int size()
- Specified by:
size in interface Collection<Short>- Specified by:
size in class AbstractCollection<Short>
clear
public void clear()
- Specified by:
clear in interface Collection<Short>- Overrides:
clear in class AbstractCollection<Short>
Copyright © 2011. All Rights Reserved.