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.
|
String |
toString() |
Set<BinaryValue> |
view()
Get this set as a
Set . |
getAsCounter, getAsFlag, getAsMap, getAsRegister, getAsSet, isCounter, isFlag, isMap, isRegister, isSet
public 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 RiakDatatype
Copyright © 2016. All rights reserved.