Interface ChildNodeEntry
-
- All Known Implementing Classes:
AbstractChildNodeEntry
,MemoryChildNodeEntry
public interface ChildNodeEntry
AChildNodeEntry
instance represents the child node states of aNodeState
.Equality and hash codes
Two child node entries are considered equal if and only if their names and referenced node states match. The
Object.equals(Object)
method needs to be implemented so that it complies with this definition. And while child node entries are not meant for use as hash keys, theObject.hashCode()
method should still be implemented according to this equality contract.
-
-
Field Summary
Fields Modifier and Type Field Description static Function<ChildNodeEntry,java.lang.String>
GET_NAME
Mapping from a ChildNodeEntry instance to its name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.String
getName()
The name of the child node state wrt.@NotNull NodeState
getNodeState()
The child node state
-
-
-
Field Detail
-
GET_NAME
static final Function<ChildNodeEntry,java.lang.String> GET_NAME
Mapping from a ChildNodeEntry instance to its name.
-
-
Method Detail
-
getName
@NotNull @NotNull java.lang.String getName()
The name of the child node state wrt. to its parent state.- Returns:
- name of the child node
-
getNodeState
@NotNull @NotNull NodeState getNodeState()
The child node state- Returns:
- child node state
-
-