Package com.github.tommyettinger.ds
Interface PrimitiveSet.SetOfChar
- All Superinterfaces:
PrimitiveCollection<Character>,PrimitiveCollection.OfChar,PrimitiveSet<Character>
- All Known Implementing Classes:
CharBitSet
- Enclosing interface:
- PrimitiveSet<T>
public static interface PrimitiveSet.SetOfChar
extends PrimitiveCollection.OfChar, PrimitiveSet<Character>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tommyettinger.ds.PrimitiveCollection
PrimitiveCollection.OfBoolean, PrimitiveCollection.OfByte, PrimitiveCollection.OfChar, PrimitiveCollection.OfDouble, PrimitiveCollection.OfFloat, PrimitiveCollection.OfInt, PrimitiveCollection.OfLong, PrimitiveCollection.OfShortNested classes/interfaces inherited from interface com.github.tommyettinger.ds.PrimitiveSet
PrimitiveSet.SetOfChar, PrimitiveSet.SetOfInt, PrimitiveSet.SetOfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanequalContents(Object other) Compares this PrimitiveSet.SetOfChar with another PrimitiveSet.SetOfChar by checking their identity, their types (both must implement PrimitiveSet.SetOfChar), and their sizes, before checking if other contains each item in this PrimitiveSet.SetOfChar, in any order or quantity.Methods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection
clear, isEmpty, notEmpty, sizeMethods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection.OfChar
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 com.github.tommyettinger.ds.PrimitiveSet
equals, hashCode
-
Method Details
-
equalContents
Compares this PrimitiveSet.SetOfChar with another PrimitiveSet.SetOfChar by checking their identity, their types (both must implement PrimitiveSet.SetOfChar), and their sizes, before checking if other contains each item in this PrimitiveSet.SetOfChar, 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.SetOfChar, but that isn't necessary forother.- Specified by:
equalContentsin interfacePrimitiveCollection.OfChar- Parameters:
other- another Object that should be a PrimitiveSet.SetOfChar- Returns:
- true if other is another PrimitiveSet.SetOfChar with exactly the same items, false otherwise
-