Package eu.bandm.tools.tpath.runtime
Class NodeSet<N>
java.lang.Object
eu.bandm.tools.tpath.runtime.Value<N>
eu.bandm.tools.tpath.runtime.NodeSet<N>
- All Implemented Interfaces:
Iterable<N>
Needs a
DocumentClient
, currently only for DocumentClient.stringValue(Object)
.
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(Object...)
.)-
Constructor Summary
ConstructorDescriptionNodeSet
(DocumentClient<N> client, LazyList<N> nodes, boolean reverse) NodeSet
(DocumentClient<N> client, Iterable<N> nodes, boolean reverse) NodeSet
(DocumentClient<N> client, List<N> nodes, boolean reverse) -
Method Summary
Modifier and TypeMethodDescriptionasNumber()
asString()
filterWithConstraint
(BiPredicate<? super N, ? super C> rel, Iterable<? extends C> constraints) static <N> NodeSet<N>
flatten
(DocumentClient<N> client, Iterable<NodeSet<N>> sets, boolean reverse) getNodes()
boolean
isEmpty()
boolean
boolean
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) reverse()
int
size()
stringValue
(N n) toString()
Methods inherited from class eu.bandm.tools.tpath.runtime.Value
booleanValue, isBoolean, isNumber, isString, numberValue, singleton, stringValue, value, value, value
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NodeSet
-
NodeSet
-
NodeSet
-
-
Method Details
-
isNodeSet
public boolean isNodeSet() -
getNodes
-
getFirstNode
-
getDocumentClient
-
isEmpty
public boolean isEmpty() -
size
public int size() -
isReverse
public boolean isReverse() -
reverse
-
unreverse
-
iterator
-
asBoolean
-
asString
-
stringValue
-
asNumber
-
asNodeSet
-
flatten
public static <N> NodeSet<N> flatten(DocumentClient<N> client, Iterable<NodeSet<N>> sets, boolean reverse) -
bind
-
filter
-
filterWithConstraint
public <C> NodeSet<N> filterWithConstraint(BiPredicate<? super N, ? super C> rel, Iterable<? extends C> constraints) -
prefix
-
postfix
-
toString
-
newInstance
-
newInstance
-
newInstance
-
newInstance
-
newInstance
-
newInstance
public static <N> NodeSet<N> newInstance(DocumentClient<N> client, Iterable<N> nodes, boolean reverse) -
newInstance
-
newInstance
-
newInstance
-