Package com.illumon.iris.db.tables
Class StringSetWrapper
java.lang.Object
com.illumon.iris.db.tables.StringSetWrapper
- All Implemented Interfaces:
StringSet
,Serializable
,Iterable<String>
public class StringSetWrapper extends Object implements StringSet, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StringSetWrapper(int initialCapacity)
StringSetWrapper(ObjectChunk<String,?> values, int start, int length)
StringSetWrapper(String... values)
StringSetWrapper(String[] values, int start, int length)
StringSetWrapper(Collection<String> values)
-
Method Summary
Modifier and Type Method Description void
addStringToSet(String val)
boolean
contains(String value)
boolean
containsAll(String... values)
boolean
containsAny(String... values)
boolean
equals(Object other)
long
getEncoding(SymbolManager<String> symbolManager)
int
hashCode()
boolean
isEmpty()
Iterator<String>
iterator()
int
size()
String[]
sortedValues()
Get a sorted array of the values in this StringSet.String
toString()
String[]
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.tables.libs.StringSet
defaultEquals, defaultHashCode, defaultToString
-
Constructor Details
-
StringSetWrapper
-
StringSetWrapper
-
StringSetWrapper
-
StringSetWrapper
-
StringSetWrapper
public StringSetWrapper(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
-