Interface PrimitiveSet.SetOfInt

All Superinterfaces:
PrimitiveCollection<Integer>, PrimitiveCollection.OfInt, PrimitiveSet<Integer>
All Known Implementing Classes:
IntFloatMap.Keys, IntFloatOrderedMap.OrderedMapKeys, IntIntMap.Keys, IntIntOrderedMap.OrderedMapKeys, IntLongMap.Keys, IntLongOrderedMap.OrderedMapKeys, IntObjectMap.Keys, IntObjectOrderedMap.OrderedMapKeys, IntOrderedSet, IntSet
Enclosing interface:
PrimitiveSet<T>

public static interface PrimitiveSet.SetOfInt extends PrimitiveCollection.OfInt, PrimitiveSet<Integer>
  • Method Details

    • equalContents

      default boolean equalContents(Object other)
      Compares this PrimitiveSet.SetOfInt with another PrimitiveSet.SetOfInt by checking their identity, their types (both must implement PrimitiveSet.SetOfInt), and their sizes, before checking if other contains each item in this PrimitiveSet.SetOfInt, in any order or quantity. This is most useful for the key "set" or value collection in a primitive-backed map, since quantity doesn't matter for keys and order doesn't matter for either. Many implementations may need to reset the iterator on this PrimitiveSet.SetOfInt, but that isn't necessary for other.
      Specified by:
      equalContents in interface PrimitiveCollection.OfInt
      Parameters:
      other - another Object that should be a PrimitiveSet.SetOfInt
      Returns:
      true if other is another PrimitiveSet.SetOfInt with exactly the same items, false otherwise