| Modifier and Type | Method and Description |
|---|---|
Nodes |
filter(Predicate<Node> predicate) |
int |
getSize()
Returns the number of Node instances contained in this
Nodes object. |
default boolean |
hasSingleNode()
|
default Stream<String> |
idStream()
Returns a stream of the id's of the Node instances contained in this
Nodes object. |
Nodes |
intersected(Nodes otherNodes)
Returns a Nodes object with the intersection of this Nodes object and
the otherNodes object, i.e.
|
default Node |
singleNode()
Returns the single Node object contained in this
Nodes object or,
throws an ExactlyOneNodeExpectedException when the Nodes object
contains no Node or more than one Node. |
default String |
singleNodeId()
Returns the id of the single Node object contained in this
Nodes
object or, throws an ExactlyOneNodeExpectedException when the
Nodes object contains no Node or more than one Node. |
Stream<Node> |
stream()
Returns a stream of the Node instances contained in this
Nodes
object. |
Nodes |
union(Nodes otherNodes)
Returns a Nodes object with the union of this Nodes object and
the otherNodes object, i.e.
|
forEach, iterator, spliteratorint getSize()
Nodes object.default boolean hasSingleNode()
default Node singleNode()
Nodes object or,
throws an ExactlyOneNodeExpectedException when the Nodes object
contains no Node or more than one Node.default String singleNodeId()
Nodes
object or, throws an ExactlyOneNodeExpectedException when the
Nodes object contains no Node or more than one Node.default Stream<String> idStream()
Nodes object.Nodes intersected(Nodes otherNodes)
This object and the otherNodes are not modified.
Nodes union(Nodes otherNodes)
This object and the otherNodes are not modified.
Copyright © 2023 abego Software GmbH, Germany. All rights reserved.