N - specific class implementing Networked, e.g. Network or Nodepublic interface Networked<N extends Networked>
| Modifier and Type | Method and Description |
|---|---|
Set<N> |
getChildren()
Builds and returns a set of children, which is valid at the time of request.
|
List<Link> |
getLinksIn()
Returns a copy of the list of incoming Links.
|
List<Link> |
getLinksOut()
Returns a copy of the list of outgoing Links.
|
Set<N> |
getParents()
Builds and returns a set of parents, which is valid at the time of request.
|
default boolean |
hasAncestor(N ancestor)
Checks recursively whether any of the links are incoming from the provided ancestor.
|
default boolean |
hasDescendant(N descendant)
Checks recursively whether any of the links are outgoing to the provided descendant.
|
boolean |
unlink(N networked)
Breaks the Link between this Networked object and the one provided, regardless of which one is the parent and which is the child.
|
default boolean hasAncestor(N ancestor)
ancestor - ancestor object to look fordefault boolean hasDescendant(N descendant)
descendant - descendant object to look forSet<N> getParents()
Set<N> getChildren()
List<Link> getLinksIn()
List<Link> getLinksOut()
boolean unlink(N networked)
networked - the Networked object to break a link withCopyright © 2021. All rights reserved.