it.unimi.dsi.fastutil.chars
Class AbstractChar2LongSortedMap.ValuesCollection

java.lang.Object
  extended by java.util.AbstractCollection<Long>
      extended by it.unimi.dsi.fastutil.longs.AbstractLongCollection
          extended by it.unimi.dsi.fastutil.chars.AbstractChar2LongSortedMap.ValuesCollection
All Implemented Interfaces:
LongCollection, LongIterable, Iterable<Long>, Collection<Long>
Enclosing class:
AbstractChar2LongSortedMap

protected class AbstractChar2LongSortedMap.ValuesCollection
extends AbstractLongCollection

A wrapper exhibiting the values of a map.


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

AbstractChar2LongSortedMap.ValuesCollection

protected AbstractChar2LongSortedMap.ValuesCollection()
Method Detail

iterator

public LongIterator iterator()
Description copied from interface: LongCollection
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 LongCollection
Specified by:
iterator in interface LongIterable
Specified by:
iterator in interface Iterable<Long>
Specified by:
iterator in interface Collection<Long>
Specified by:
iterator in class AbstractLongCollection
Returns:
a type-specific iterator on the elements of this collection.

contains

public boolean contains(long k)
Specified by:
contains in interface LongCollection
Overrides:
contains in class AbstractLongCollection
See Also:
Collection.contains(Object)

size

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

clear

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


Copyright © 2011. All Rights Reserved.