Class AbstractInt2ReferenceMap.BasicEntrySet<V>

java.lang.Object
java.util.AbstractCollection<K>
All Implemented Interfaces:
ObjectCollection<Int2ReferenceMap.Entry<V>>, ObjectIterable<Int2ReferenceMap.Entry<V>>, ObjectSet<Int2ReferenceMap.Entry<V>>, java.lang.Cloneable, java.lang.Iterable<Int2ReferenceMap.Entry<V>>, java.util.Collection<Int2ReferenceMap.Entry<V>>, java.util.Set<Int2ReferenceMap.Entry<V>>
Enclosing class:
AbstractInt2ReferenceMap<V>

public abstract static class AbstractInt2ReferenceMap.BasicEntrySet<V>
extends AbstractObjectSet<Int2ReferenceMap.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​(Int2ReferenceMap<V> map)  
  • Method Summary

    Modifier and Type Method Description
    boolean contains​(java.lang.Object o)  
    boolean remove​(java.lang.Object o)  
    int size()  
    ObjectSpliterator<Int2ReferenceMap.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

    Methods inherited from class java.util.AbstractCollection

    add, addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.Set

    add, addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
  • Constructor Details

  • Method Details

    • contains

      public boolean contains​(java.lang.Object o)
      Specified by:
      contains in interface java.util.Collection<V>
      Specified by:
      contains in interface java.util.Set<V>
      Overrides:
      contains in class java.util.AbstractCollection<Int2ReferenceMap.Entry<V>>
    • remove

      public boolean remove​(java.lang.Object o)
      Specified by:
      remove in interface java.util.Collection<V>
      Specified by:
      remove in interface java.util.Set<V>
      Overrides:
      remove in class java.util.AbstractCollection<Int2ReferenceMap.Entry<V>>
    • size

      public int size()
      Specified by:
      size in interface java.util.Collection<V>
      Specified by:
      size in interface java.util.Set<V>
      Specified by:
      size in class java.util.AbstractCollection<Int2ReferenceMap.Entry<V>>
    • spliterator

      public ObjectSpliterator<Int2ReferenceMap.Entry<V>> 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.