Package it.unimi.dsi.fastutil.ints
Class AbstractInt2IntMap.BasicEntrySet
- java.lang.Object
-
- java.util.AbstractCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectSet<Int2IntMap.Entry>
-
- it.unimi.dsi.fastutil.ints.AbstractInt2IntMap.BasicEntrySet
-
- All Implemented Interfaces:
ObjectCollection<Int2IntMap.Entry>,ObjectIterable<Int2IntMap.Entry>,ObjectSet<Int2IntMap.Entry>,java.lang.Cloneable,java.lang.Iterable<Int2IntMap.Entry>,java.util.Collection<Int2IntMap.Entry>,java.util.Set<Int2IntMap.Entry>
- Enclosing class:
- AbstractInt2IntMap
public abstract static class AbstractInt2IntMap.BasicEntrySet extends AbstractObjectSet<Int2IntMap.Entry>
This class provides a basic implementation for an Entry set which forwards some queries to the map.
-
-
Constructor Summary
Constructors Constructor Description BasicEntrySet(Int2IntMap map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object o)booleanremove(java.lang.Object o)intsize()ObjectSpliterator<Int2IntMap.Entry>spliterator()Returns a type-specific spliterator on the elements of this set.-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectSet
equals, hashCode, iterator
-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toString
-
-
-
-
Constructor Detail
-
BasicEntrySet
public BasicEntrySet(Int2IntMap map)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<Int2IntMap.Entry>- Specified by:
containsin interfacejava.util.Set<Int2IntMap.Entry>- Overrides:
containsin classjava.util.AbstractCollection<Int2IntMap.Entry>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<Int2IntMap.Entry>- Specified by:
removein interfacejava.util.Set<Int2IntMap.Entry>- Overrides:
removein classjava.util.AbstractCollection<Int2IntMap.Entry>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<Int2IntMap.Entry>- Specified by:
sizein interfacejava.util.Set<Int2IntMap.Entry>- Specified by:
sizein classjava.util.AbstractCollection<Int2IntMap.Entry>
-
spliterator
public ObjectSpliterator<Int2IntMap.Entry> spliterator()
Description copied from interface:ObjectSetReturns a type-specific spliterator on the elements of this set.Set spliterators must report at least
Spliterator.DISTINCT.See
Set.spliterator()for more documentation on the requirements of the returned spliterator.- Returns:
- a type-specific spliterator on the elements of this collection.
-
-