public class NodeSet<N> extends Value<N> implements Iterable<N>
DocumentClient
, currently only for DocumentClient.stringValue(N)
.
It is public accessible by getDocumentClient()
.
This fact is supported by factory methods which take a Context
and extract it.
(There is a dual factory method Context.newSet(N...)
with Context
,)Constructor and Description |
---|
NodeSet(DocumentClient<N> client,
Iterable<N> nodes,
boolean reverse) |
NodeSet(DocumentClient<N> client,
LazyList<N> nodes,
boolean reverse) |
NodeSet(DocumentClient<N> client,
List<N> nodes,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
Boolean<N> |
asBoolean() |
NodeSet<N> |
asNodeSet() |
Number<N> |
asNumber() |
String<N> |
asString() |
NodeSet<N> |
bind(Function<N,NodeSet<N>> cont) |
NodeSet<N> |
filter(Predicate<? super N> test) |
<C> NodeSet<N> |
filterWithConstraint(Relation<? super N,? super C> rel,
Iterable<? extends C> constraints) |
static <N> NodeSet<N> |
flatten(DocumentClient<N> client,
Iterable<NodeSet<N>> sets,
boolean reverse) |
DocumentClient<N> |
getDocumentClient() |
N |
getFirstNode() |
LazyList<N> |
getNodes() |
boolean |
isEmpty() |
boolean |
isNodeSet() |
boolean |
isReverse() |
Iterator<N> |
iterator() |
static <N> NodeSet<N> |
newInstance(Context<N> context,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(Context<N> context,
Iterable<N> nodes,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(Context<N> context,
List<N> nodes,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(Context<N> context,
N... nodes) |
static <N> NodeSet<N> |
newInstance(Context<N> context,
N node,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(DocumentClient<N> client,
Iterable<N> nodes,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(DocumentClient<N> client,
List<N> nodes) |
static <N> NodeSet<N> |
newInstance(DocumentClient<N> client,
List<N> nodes,
boolean reverse) |
static <N> NodeSet<N> |
newInstance(DocumentClient<N> client,
N... nodes) |
NodeSet<N> |
postfix(N node) |
NodeSet<N> |
prefix(N node) |
NodeSet<N> |
reverse() |
int |
size() |
Value<N> |
stringValue(N n) |
String |
toString() |
NodeSet<N> |
unreverse() |
booleanValue, isBoolean, isNumber, isString, numberValue, singleton, stringValue, value, value, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public NodeSet(DocumentClient<N> client, LazyList<N> nodes, boolean reverse)
public NodeSet(DocumentClient<N> client, List<N> nodes, boolean reverse)
public NodeSet(DocumentClient<N> client, Iterable<N> nodes, boolean reverse)
public N getFirstNode()
public DocumentClient<N> getDocumentClient()
public boolean isEmpty()
public int size()
public boolean isReverse()
public static <N> NodeSet<N> flatten(DocumentClient<N> client, Iterable<NodeSet<N>> sets, boolean reverse)
public <C> NodeSet<N> filterWithConstraint(Relation<? super N,? super C> rel, Iterable<? extends C> constraints)
@SafeVarargs public static <N> NodeSet<N> newInstance(Context<N> context, N... nodes)
@SafeVarargs public static <N> NodeSet<N> newInstance(DocumentClient<N> client, N... nodes)
public static <N> NodeSet<N> newInstance(Context<N> context, Iterable<N> nodes, boolean reverse)
public static <N> NodeSet<N> newInstance(DocumentClient<N> client, Iterable<N> nodes, boolean reverse)
public static <N> NodeSet<N> newInstance(Context<N> context, List<N> nodes, boolean reverse)
public static <N> NodeSet<N> newInstance(DocumentClient<N> client, List<N> nodes, boolean reverse)
public static <N> NodeSet<N> newInstance(DocumentClient<N> client, List<N> nodes)
see also the complete user documentation .