Interface PrimitiveCollection<T>

All Known Subinterfaces:
PrimitiveCollection.OfBoolean, PrimitiveCollection.OfByte, PrimitiveCollection.OfChar, PrimitiveCollection.OfDouble, PrimitiveCollection.OfFloat, PrimitiveCollection.OfInt, PrimitiveCollection.OfLong, PrimitiveCollection.OfShort, PrimitiveSet<T>, PrimitiveSet.SetOfChar, PrimitiveSet.SetOfInt, PrimitiveSet.SetOfLong
All Known Implementing Classes:
BooleanBag, BooleanDeque, BooleanList, ByteBag, ByteDeque, ByteList, CharBag, CharBitSet, CharDeque, CharList, DoubleBag, DoubleDeque, DoubleList, EnumFloatMap.Values, EnumFloatOrderedMap.OrderedMapValues, EnumIntMap.Values, EnumIntOrderedMap.OrderedMapValues, EnumLongMap.Values, EnumLongOrderedMap.OrderedMapValues, FloatBag, FloatDeque, FloatList, IntBag, IntDeque, IntFloatMap.Keys, IntFloatMap.Values, IntFloatOrderedMap.OrderedMapKeys, IntFloatOrderedMap.OrderedMapValues, IntIntMap.Keys, IntIntMap.Values, IntIntOrderedMap.OrderedMapKeys, IntIntOrderedMap.OrderedMapValues, IntList, IntLongMap.Keys, IntLongMap.Values, IntLongOrderedMap.OrderedMapKeys, IntLongOrderedMap.OrderedMapValues, IntObjectMap.Keys, IntObjectOrderedMap.OrderedMapKeys, IntOrderedSet, IntSet, LongBag, LongDeque, LongFloatMap.Keys, LongFloatMap.Values, LongFloatOrderedMap.OrderedMapKeys, LongFloatOrderedMap.OrderedMapValues, LongIntMap.Keys, LongIntMap.Values, LongIntOrderedMap.OrderedMapKeys, LongIntOrderedMap.OrderedMapValues, LongList, LongLongMap.Keys, LongLongMap.Values, LongLongOrderedMap.OrderedMapKeys, LongLongOrderedMap.OrderedMapValues, LongObjectMap.Keys, LongObjectOrderedMap.OrderedMapKeys, LongOrderedSet, LongSet, ObjectFloatMap.Values, ObjectFloatOrderedMap.OrderedMapValues, ObjectIntMap.Values, ObjectIntOrderedMap.OrderedMapValues, ObjectLongMap.Values, ObjectLongOrderedMap.OrderedMapValues, OffsetBitSet, ShortBag, ShortDeque, ShortList

public interface PrimitiveCollection<T>
Analogous to Collection but for a primitive type, this is technically built around Iterator, but should almost always use a primitive-specialized iterator such as FloatIterator instead of the generic Iterator. This is not necessarily a modifiable collection. The nested interfaces define most of the actually useful operations, and you will probably never use PrimitiveCollection directly.
  • Method Details

    • size

      int size()
    • isEmpty

      default boolean isEmpty()
    • notEmpty

      default boolean notEmpty()
    • iterator

      Iterator<T> iterator()
    • clear

      void clear()
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object