it.unimi.dsi.fastutil.bytes
Class AbstractByte2ShortSortedMap.ValuesCollection

java.lang.Object
  extended by java.util.AbstractCollection<Short>
      extended by it.unimi.dsi.fastutil.shorts.AbstractShortCollection
          extended by it.unimi.dsi.fastutil.bytes.AbstractByte2ShortSortedMap.ValuesCollection
All Implemented Interfaces:
ShortCollection, ShortIterable, Iterable<Short>, Collection<Short>
Enclosing class:
AbstractByte2ShortSortedMap

protected class AbstractByte2ShortSortedMap.ValuesCollection
extends AbstractShortCollection

A wrapper exhibiting the values of a map.


Constructor Summary
protected AbstractByte2ShortSortedMap.ValuesCollection()
           
 
Method Summary
 void clear()
           
 boolean contains(short k)
           
 ShortIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 int size()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

AbstractByte2ShortSortedMap.ValuesCollection

protected AbstractByte2ShortSortedMap.ValuesCollection()
Method Detail

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.