Class AbstractLong2IntMap.BasicEntrySet

All Implemented Interfaces:
ObjectCollection<Long2IntMap.Entry>, ObjectIterable<Long2IntMap.Entry>, ObjectSet<Long2IntMap.Entry>, java.lang.Cloneable, java.lang.Iterable<Long2IntMap.Entry>, java.util.Collection<Long2IntMap.Entry>, java.util.Set<Long2IntMap.Entry>
Enclosing class:

public abstract static class AbstractLong2IntMap.BasicEntrySet
extends AbstractObjectSet<Long2IntMap.Entry>
This class provides a basic implementation for an Entry set which forwards some queries to the map.
  • Constructor Summary

    Constructor Description
    BasicEntrySet​(Long2IntMap map)  
  • Method Summary

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


    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


    Methods inherited from interface java.util.Set

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

    • BasicEntrySet

      public BasicEntrySet​(Long2IntMap map)
  • Method Details

    • contains

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

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

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

      public ObjectSpliterator<Long2IntMap.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.

      a type-specific spliterator on the elements of this collection.