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

java.lang.Object
  extended by java.util.AbstractCollection<Double>
      extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection
          extended by it.unimi.dsi.fastutil.shorts.AbstractShort2DoubleSortedMap.ValuesCollection
All Implemented Interfaces:
DoubleCollection, DoubleIterable, Iterable<Double>, Collection<Double>
Enclosing class:
AbstractShort2DoubleSortedMap

protected class AbstractShort2DoubleSortedMap.ValuesCollection
extends AbstractDoubleCollection

A wrapper exhibiting the values of a map.


Constructor Summary
protected AbstractShort2DoubleSortedMap.ValuesCollection()
           
 
Method Summary
 void clear()
           
 boolean contains(double k)
           
 DoubleIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 int size()
           
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection
add, add, addAll, addAll, contains, containsAll, containsAll, doubleIterator, isEmpty, rem, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toDoubleArray, toDoubleArray, 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

AbstractShort2DoubleSortedMap.ValuesCollection

protected AbstractShort2DoubleSortedMap.ValuesCollection()
Method Detail

iterator

public DoubleIterator iterator()
Description copied from interface: DoubleCollection
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 DoubleCollection
Specified by:
iterator in interface DoubleIterable
Specified by:
iterator in interface Iterable<Double>
Specified by:
iterator in interface Collection<Double>
Specified by:
iterator in class AbstractDoubleCollection
Returns:
a type-specific iterator on the elements of this collection.

contains

public boolean contains(double k)
Specified by:
contains in interface DoubleCollection
Overrides:
contains in class AbstractDoubleCollection
See Also:
Collection.contains(Object)

size

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

clear

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


Copyright © 2011. All Rights Reserved.