Package it.unimi.dsi.fastutil.longs
Class AbstractLong2ObjectMap.BasicEntrySet<V>
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectSet<Long2ObjectMap.Entry<V>>
it.unimi.dsi.fastutil.longs.AbstractLong2ObjectMap.BasicEntrySet<V>
- All Implemented Interfaces:
ObjectCollection<Long2ObjectMap.Entry<V>>,ObjectIterable<Long2ObjectMap.Entry<V>>,ObjectSet<Long2ObjectMap.Entry<V>>,java.lang.Cloneable,java.lang.Iterable<Long2ObjectMap.Entry<V>>,java.util.Collection<Long2ObjectMap.Entry<V>>,java.util.Set<Long2ObjectMap.Entry<V>>
- Enclosing class:
- AbstractLong2ObjectMap<V>
public abstract static class AbstractLong2ObjectMap.BasicEntrySet<V> extends AbstractObjectSet<Long2ObjectMap.Entry<V>>
This class provides a basic implementation for an Entry set which forwards some queries to the map.
-
Constructor Summary
Constructors Constructor Description BasicEntrySet(Long2ObjectMap<V> map) -
Method Summary
Modifier and Type Method Description booleancontains(java.lang.Object o)booleanremove(java.lang.Object o)intsize()ObjectSpliterator<Long2ObjectMap.Entry<V>>spliterator()Returns a type-specific spliterator on the elements of this set.Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectSet
equals, hashCode, iteratorMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toStringMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.lang.Iterable
forEachMethods inherited from interface java.util.Set
add, addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
-
Constructor Details
-
BasicEntrySet
-
-
Method Details
-
contains
public boolean contains(java.lang.Object o)- Specified by:
containsin interfacejava.util.Collection<V>- Specified by:
containsin interfacejava.util.Set<V>- Overrides:
containsin classjava.util.AbstractCollection<Long2ObjectMap.Entry<V>>
-
remove
public boolean remove(java.lang.Object o)- Specified by:
removein interfacejava.util.Collection<V>- Specified by:
removein interfacejava.util.Set<V>- Overrides:
removein classjava.util.AbstractCollection<Long2ObjectMap.Entry<V>>
-
size
public int size()- Specified by:
sizein interfacejava.util.Collection<V>- Specified by:
sizein interfacejava.util.Set<V>- Specified by:
sizein classjava.util.AbstractCollection<Long2ObjectMap.Entry<V>>
-
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.
-