Class AbstractIntCollection

java.lang.Object
com.carrotsearch.hppc.AbstractIntCollection
All Implemented Interfaces:
IntCollection, IntContainer, Iterable<IntCursor>
Direct Known Subclasses:
ByteIntHashMap.ValuesContainer, CharIntHashMap.ValuesContainer, DoubleIntHashMap.ValuesContainer, FloatIntHashMap.ValuesContainer, IntArrayDeque, IntArrayList, IntByteHashMap.KeysContainer, IntCharHashMap.KeysContainer, IntDoubleHashMap.KeysContainer, IntFloatHashMap.KeysContainer, IntHashSet, IntIntHashMap.KeysContainer, IntIntHashMap.ValuesContainer, IntLongHashMap.KeysContainer, IntObjectHashMap.KeysContainer, IntShortHashMap.KeysContainer, LongIntHashMap.ValuesContainer, ObjectIntHashMap.ValuesContainer, ShortIntHashMap.ValuesContainer

@Generated(date="2023-10-26T04:33:10+0000", value="AbstractKTypeCollection.java") abstract class AbstractIntCollection extends Object implements IntCollection
Common superclass for collections.
  • Constructor Details

    • AbstractIntCollection

      AbstractIntCollection()
  • Method Details

    • removeAll

      public int removeAll(IntLookupContainer c)
      Default implementation uses a predicate for removal.
      Specified by:
      removeAll in interface IntCollection
      Returns:
      Returns the number of removed elements.
    • retainAll

      public int retainAll(IntLookupContainer c)
      Default implementation uses a predicate for retaining.
      Specified by:
      retainAll in interface IntCollection
      Returns:
      Returns the number of removed elements.
    • retainAll

      public int retainAll(IntPredicate predicate)
      Default implementation redirects to IntCollection.removeAll(IntPredicate) and negates the predicate.
      Specified by:
      retainAll in interface IntCollection
      Returns:
      Returns the number of removed elements.
    • toArray

      public int[] toArray()
      Default implementation of copying to an array.
      Specified by:
      toArray in interface IntContainer
    • toString

      public String toString()
      Convert the contents of this container to a human-friendly string.
      Overrides:
      toString in class Object