Package io.deephaven.stringset
Class ArrayStringSet
java.lang.Object
io.deephaven.stringset.ArrayStringSet
- All Implemented Interfaces:
StringSet
,Serializable
,Iterable<String>
Array-backed
StringSet
implementation.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
containsAll
(String... values) boolean
containsAny
(String... values) final boolean
long
getEncoding
(@NotNull ToIntFunction<String> toOffset) final int
hashCode()
boolean
isEmpty()
iterator()
int
size()
String[]
Get a sorted array of the values in this StringSet.final String
toString()
String[]
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.deephaven.stringset.StringSet
defaultEquals, defaultHashCode, defaultToString
-
Constructor Details
-
ArrayStringSet
-
-
Method Details
-
contains
-
containsAny
- Specified by:
containsAny
in interfaceStringSet
-
containsAll
- Specified by:
containsAll
in interfaceStringSet
-
size
public int size() -
values
-
sortedValues
Description copied from interface:StringSet
Get a sorted array of the values in this StringSet. May or may not match the value returned byStringSet.values()
.- Specified by:
sortedValues
in interfaceStringSet
- Returns:
- A sorted array of this StringSet's values
-
isEmpty
public boolean isEmpty() -
getEncoding
- Specified by:
getEncoding
in interfaceStringSet
-
toString
-
hashCode
public final int hashCode() -
equals
-
iterator
-