Package io.deephaven.stringset
Class HashStringSet
java.lang.Object
io.deephaven.stringset.HashStringSet
- All Implemented Interfaces:
StringSet
,Serializable
,Iterable<String>
- See Also:
-
Constructor Summary
ConstructorDescriptionHashStringSet
(int initialCapacity) HashStringSet
(String... values) HashStringSet
(String[] values, int start, int length) HashStringSet
(Collection<String> values) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStringToSet
(String val) boolean
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
-
HashStringSet
-
HashStringSet
-
HashStringSet
-
HashStringSet
public HashStringSet(int initialCapacity)
-
-
Method Details
-
addStringToSet
-
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
-