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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveCollection
PrimitiveCollection.OfBoolean, PrimitiveCollection.OfByte, PrimitiveCollection.OfChar, PrimitiveCollection.OfDouble, PrimitiveCollection.OfFloat, PrimitiveCollection.OfInt, PrimitiveCollection.OfLong, PrimitiveCollection.OfShortNested classes/interfaces inherited from interface PrimitiveSet
PrimitiveSet.SetOfChar, PrimitiveSet.SetOfInt, PrimitiveSet.SetOfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanequalContents(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.Methods inherited from interface PrimitiveCollection
clear, isEmpty, notEmpty, sizeMethods inherited from interface PrimitiveCollection.OfLong
add, addAll, addAll, addAll, addAll, addDense, addDense, addLegible, addLegible, addVarargs, appendTo, appendTo, contains, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, denseAppendTo, first, forEach, iterator, remove, removeAll, removeAll, removeAll, removeAll, removeEach, removeEach, removeEach, removeEach, removeIf, retainAll, retainAll, retainAll, toArray, toArray, toDenseString, toDenseString, toString, toString, toStringMethods inherited from interface PrimitiveSet
equals, hashCode
-
Method Details
-
equalContents
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 forother.- Specified by:
equalContentsin interfacePrimitiveCollection.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
-