E - the type of elements in the node setpublic interface NodeSet<E extends OWLObject> extends Iterable<Node<E>>
Nodes.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsEntity(E e)
A convenience method that determines if this
NodeSet contains a
specific entity. |
java.util.stream.Stream<E> |
entities()
A convenience method that gets all of the entities contained in the
Nodes in this NodeSet. |
default Set<E> |
getFlattened()
Deprecated.
use
entities() |
default Set<Node<E>> |
getNodes()
Deprecated.
use
nodes() |
boolean |
isBottomSingleton()
Determies if this
NodeSet is a singleton that only contains the
bottom node (in a hierarchy). |
boolean |
isEmpty() |
boolean |
isSingleton()
Determines if this
NodeSet is a singleton. |
boolean |
isTopSingleton()
Determines if this
NodeSet is a singleton node that only contains
the top node (in a hierarchy). |
java.util.stream.Stream<Node<E>> |
nodes()
Gets the
Nodes contained in this NodeSet. |
forEach, iterator, spliterator@Deprecated default Set<E> getFlattened()
entities()Nodes in this NodeSet.Nodes in this
NodeSet.java.util.stream.Stream<E> entities()
Nodes in this NodeSet.Nodes in this
NodeSet.boolean isEmpty()
boolean containsEntity(E e)
NodeSet contains a
specific entity.e - The entity to test fortrue if this NodeSet contains a Node that
contains the entity, e, and false if this
NodeSet does not contain a Node that contains the
entity, e.boolean isSingleton()
NodeSet is a singleton. A NodeSet is a
singleton if it contains only one Node.true if this NodeSet is a singleton, otherwise
false.boolean isTopSingleton()
NodeSet is a singleton node that only contains
the top node (in a hierarchy).true if this NodeSet is a singleton that contains
only the top node, and false otherwise.Node.isTopNode()boolean isBottomSingleton()
NodeSet is a singleton that only contains the
bottom node (in a hierarchy).true if this NodeSet is a singleton that only
contains a node that is the bottom node, otherwise falseNode.isBottomNode()@Deprecated default Set<Node<E>> getNodes()
nodes()Nodes contained in this NodeSet.Nodes contained in this NodeSet. Note
that this set will be an unmodifiable set.java.util.stream.Stream<Node<E>> nodes()
Nodes contained in this NodeSet.Nodes contained in this NodeSet. Note
that this set will be an unmodifiable set.Copyright © 2017 The University of Manchester. All Rights Reserved.