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

java.lang.Object
  extended by java.util.AbstractCollection<Integer>
      extended by it.unimi.dsi.fastutil.ints.AbstractIntCollection
          extended by it.unimi.dsi.fastutil.longs.AbstractLong2IntSortedMap.ValuesCollection
All Implemented Interfaces:
IntCollection, IntIterable, Iterable<Integer>, Collection<Integer>
Enclosing class:
AbstractLong2IntSortedMap

protected class AbstractLong2IntSortedMap.ValuesCollection
extends AbstractIntCollection

A wrapper exhibiting the values of a map.


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

AbstractLong2IntSortedMap.ValuesCollection

protected AbstractLong2IntSortedMap.ValuesCollection()
Method Detail

iterator

public IntIterator iterator()
Description copied from interface: IntCollection
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 IntCollection
Specified by:
iterator in interface IntIterable
Specified by:
iterator in interface Iterable<Integer>
Specified by:
iterator in interface Collection<Integer>
Specified by:
iterator in class AbstractIntCollection
Returns:
a type-specific iterator on the elements of this collection.

contains

public boolean contains(int k)
Specified by:
contains in interface IntCollection
Overrides:
contains in class AbstractIntCollection
See Also:
Collection.contains(Object)

size

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

clear

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


Copyright © 2011. All Rights Reserved.