Package it.unimi.dsi.fastutil.shorts
Class AbstractShort2ObjectMap.BasicEntrySet<V>
- java.lang.Object
-
- java.util.AbstractCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectSet<Short2ObjectMap.Entry<V>>
-
- it.unimi.dsi.fastutil.shorts.AbstractShort2ObjectMap.BasicEntrySet<V>
-
- All Implemented Interfaces:
ObjectCollection<Short2ObjectMap.Entry<V>>,ObjectIterable<Short2ObjectMap.Entry<V>>,ObjectSet<Short2ObjectMap.Entry<V>>,java.lang.Cloneable,java.lang.Iterable<Short2ObjectMap.Entry<V>>,java.util.Collection<Short2ObjectMap.Entry<V>>,java.util.Set<Short2ObjectMap.Entry<V>>
- Enclosing class:
- AbstractShort2ObjectMap<V>
public abstract static class AbstractShort2ObjectMap.BasicEntrySet<V> extends AbstractObjectSet<Short2ObjectMap.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(Short2ObjectMap<V> 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<Short2ObjectMap.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, iterator
-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toString
-
-
-
-
Constructor Detail
-
BasicEntrySet
public BasicEntrySet(Short2ObjectMap<V> map)
-
-
Method Detail
-
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<Short2ObjectMap.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<Short2ObjectMap.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<Short2ObjectMap.Entry<V>>
-
spliterator
public ObjectSpliterator<Short2ObjectMap.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.
-
-