Package it.unimi.dsi.fastutil.doubles
Class AbstractDouble2BooleanMap.BasicEntrySet
- java.lang.Object
-
- java.util.AbstractCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectSet<Double2BooleanMap.Entry>
-
- it.unimi.dsi.fastutil.doubles.AbstractDouble2BooleanMap.BasicEntrySet
-
- All Implemented Interfaces:
ObjectCollection<Double2BooleanMap.Entry>
,ObjectIterable<Double2BooleanMap.Entry>
,ObjectSet<Double2BooleanMap.Entry>
,java.lang.Cloneable
,java.lang.Iterable<Double2BooleanMap.Entry>
,java.util.Collection<Double2BooleanMap.Entry>
,java.util.Set<Double2BooleanMap.Entry>
- Enclosing class:
- AbstractDouble2BooleanMap
public abstract static class AbstractDouble2BooleanMap.BasicEntrySet extends AbstractObjectSet<Double2BooleanMap.Entry>
This class provides a basic implementation for an Entry set which forwards some queries to the map.
-
-
Constructor Summary
Constructors Constructor Description BasicEntrySet(Double2BooleanMap map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object o)
boolean
remove(java.lang.Object o)
int
size()
ObjectSpliterator<Double2BooleanMap.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(Double2BooleanMap map)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<Double2BooleanMap.Entry>
- Specified by:
contains
in interfacejava.util.Set<Double2BooleanMap.Entry>
- Overrides:
contains
in classjava.util.AbstractCollection<Double2BooleanMap.Entry>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<Double2BooleanMap.Entry>
- Specified by:
remove
in interfacejava.util.Set<Double2BooleanMap.Entry>
- Overrides:
remove
in classjava.util.AbstractCollection<Double2BooleanMap.Entry>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<Double2BooleanMap.Entry>
- Specified by:
size
in interfacejava.util.Set<Double2BooleanMap.Entry>
- Specified by:
size
in classjava.util.AbstractCollection<Double2BooleanMap.Entry>
-
spliterator
public ObjectSpliterator<Double2BooleanMap.Entry> spliterator()
Description copied from interface:ObjectSet
Returns 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.
-
-