public class RiakSet extends RiakDatatype
This is an immutable set returned when querying Riak for a set datatype.
| Constructor and Description |
|---|
RiakSet(List<BinaryValue> elements) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(BinaryValue element)
Check to see if the supplied value exists in this RiakSet.
|
boolean |
contains(String element)
Check to see if the supplied value exists in this RiakSet.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
Set<BinaryValue> |
view()
Get this set as a
Set. |
getAsCounter, getAsFlag, getAsHll, getAsMap, getAsRegister, getAsSet, isCounter, isFlag, isHll, isMap, isRegister, isSetpublic RiakSet(List<BinaryValue> elements)
public boolean contains(BinaryValue element)
element - The value to check.public boolean contains(String element)
element - The value to check.public Set<BinaryValue> view()
Set. The returned Set is unmodifiable.view in class RiakDatatypeCopyright © 2016. All rights reserved.