Interface PrimitiveSet.SetOfLong

All Superinterfaces:
PrimitiveCollection<Long>, PrimitiveCollection.OfLong, PrimitiveSet<Long>
All Known Implementing Classes:
LongFloatMap.Keys, LongFloatOrderedMap.OrderedMapKeys, LongIntMap.Keys, LongIntOrderedMap.OrderedMapKeys, LongLongMap.Keys, LongLongOrderedMap.OrderedMapKeys, LongObjectMap.Keys, LongObjectOrderedMap.OrderedMapKeys, LongOrderedSet, LongSet
Enclosing interface:
PrimitiveSet<T>

public static interface PrimitiveSet.SetOfLong extends PrimitiveCollection.OfLong, PrimitiveSet<Long>
  • Method Details

    • equalContents

      default boolean equalContents(Object other)
      Compares this PrimitiveSet.SetOfLong with another PrimitiveSet.SetOfLong by checking their identity, their types (both must implement PrimitiveSet.SetOfLong), and their sizes, before checking if other contains each item in this PrimitiveSet.SetOfLong, 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.SetOfLong, but that isn't necessary for other.
      Specified by:
      equalContents in interface PrimitiveCollection.OfLong
      Parameters:
      other - another Object that should be a PrimitiveSet.SetOfLong
      Returns:
      true if other is another PrimitiveSet.SetOfLong with exactly the same items, false otherwise