it.unimi.dsi.fastutil.longs
Class AbstractLong2ReferenceSortedMap.ValuesCollection

java.lang.Object
  extended by java.util.AbstractCollection<K>
      extended by it.unimi.dsi.fastutil.objects.AbstractReferenceCollection<V>
          extended by it.unimi.dsi.fastutil.longs.AbstractLong2ReferenceSortedMap.ValuesCollection
All Implemented Interfaces:
ObjectIterable<V>, ReferenceCollection<V>, Iterable<V>, Collection<V>
Enclosing class:
AbstractLong2ReferenceSortedMap<V>

protected class AbstractLong2ReferenceSortedMap.ValuesCollection
extends AbstractReferenceCollection<V>

A wrapper exhibiting the values of a map.


Constructor Summary
protected AbstractLong2ReferenceSortedMap.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.AbstractReferenceCollection
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

AbstractLong2ReferenceSortedMap.ValuesCollection

protected AbstractLong2ReferenceSortedMap.ValuesCollection()
Method Detail

iterator

public ObjectIterator<V> iterator()
Description copied from interface: ReferenceCollection
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 ObjectIterable<V>
Specified by:
iterator in interface ReferenceCollection<V>
Specified by:
iterator in interface Iterable<V>
Specified by:
iterator in interface Collection<V>
Specified by:
iterator in class AbstractReferenceCollection<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.