it.unimi.dsi.fastutil.shorts
Class AbstractShort2ObjectSortedMap.ValuesCollection

java.lang.Object
  extended by java.util.AbstractCollection<K>
      extended by it.unimi.dsi.fastutil.objects.AbstractObjectCollection<V>
          extended by it.unimi.dsi.fastutil.shorts.AbstractShort2ObjectSortedMap.ValuesCollection
All Implemented Interfaces:
ObjectCollection<V>, ObjectIterable<V>, Iterable<V>, Collection<V>
Enclosing class:
AbstractShort2ObjectSortedMap<V>

protected class AbstractShort2ObjectSortedMap.ValuesCollection
extends AbstractObjectCollection<V>

A wrapper exhibiting the values of a map.


Constructor Summary
protected AbstractShort2ObjectSortedMap.ValuesCollection()
           
 
Method Summary
 void clear()
           
 boolean contains(Object k)
           
 ObjectIterator<V> iterator()
          Returns a type-specific iterator on the elements of this collection.
 int size()
           
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
add, addAll, containsAll, isEmpty, objectIterator, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.util.AbstractCollection
remove
 
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, remove
 

Constructor Detail

AbstractShort2ObjectSortedMap.ValuesCollection

protected AbstractShort2ObjectSortedMap.ValuesCollection()
Method Detail

iterator

public ObjectIterator<V> iterator()
Description copied from interface: ObjectCollection
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 ObjectCollection<V>
Specified by:
iterator in interface ObjectIterable<V>
Specified by:
iterator in interface Iterable<V>
Specified by:
iterator in interface Collection<V>
Specified by:
iterator in class AbstractObjectCollection<V>
Returns:
a type-specific iterator on the elements of this collection.

contains

public boolean contains(Object k)
Specified by:
contains in interface Collection<V>
Overrides:
contains in class AbstractCollection<V>

size

public int size()
Specified by:
size in interface Collection<V>
Specified by:
size in class AbstractCollection<V>

clear

public void clear()
Specified by:
clear in interface Collection<V>
Overrides:
clear in class AbstractCollection<V>


Copyright © 2011. All Rights Reserved.