Package io.deephaven.stringset
Interface StringSet
- All Known Implementing Classes:
ArrayStringSet
,HashStringSet
,LongBitmapStringSet
Interface for sets of Strings that can be mapped to a 64-bit long bitmap.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
containsAll
(String... values) boolean
containsAny
(String... values) default boolean
defaultEquals
(Object other) default int
default String
long
getEncoding
(@NotNull ToIntFunction<String> toOffset) boolean
isEmpty()
int
size()
String[]
Get a sorted array of the values in this StringSet.String[]
values()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
contains
-
containsAny
-
containsAll
-
size
int size() -
values
String[] values() -
sortedValues
String[] sortedValues()Get a sorted array of the values in this StringSet. May or may not match the value returned byvalues()
.- Returns:
- A sorted array of this StringSet's values
-
isEmpty
boolean isEmpty() -
getEncoding
-
defaultToString
-
defaultHashCode
default int defaultHashCode() -
defaultEquals
-