Interface RoutingUtility
public interface RoutingUtility
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic String
addressToString
(List<Object> address) Converts the address, as represented by aList<Object>
, to a human-readible string using the components'Object.toString()
method.static HasNodeId
checkAddressComponentHasNodeId
(Object object) Ensure that the component is an instance ofHasNodeId
throwing aRoutingException
if the object is not an instance ofHasNodeId
.static NodeId
ensureDistinctNode
(List<Object> address, NodeId nodeId0, NodeId nodeId1) A reducer function intended to ensure that the suppliedNodeId
s are all the same.reduceAddressToNodeIds
(List<Object> address) static NodeId
reduceAddressToSingleNodeId
(List<Object> address)
-
Method Details
-
reduceAddressToNodeIds
-
reduceAddressToSingleNodeId
-
addressToString
Converts the address, as represented by aList<Object>
, to a human-readible string using the components'Object.toString()
method.- Parameters:
address
- the address- Returns:
- the string representation
-
checkAddressComponentHasNodeId
Ensure that the component is an instance ofHasNodeId
throwing aRoutingException
if the object is not an instance ofHasNodeId
.- Parameters:
object
- the object to check- Returns:
- the object cast as
HasNodeId
-
ensureDistinctNode
A reducer function intended to ensure that the suppliedNodeId
s are all the same.
-