Package org.onosproject.cluster
Class ControllerNodeToNodeId
- java.lang.Object
-
- org.onosproject.cluster.ControllerNodeToNodeId
-
- All Implemented Interfaces:
com.google.common.base.Function<ControllerNode,NodeId>
,Function<ControllerNode,NodeId>
public final class ControllerNodeToNodeId extends Object implements com.google.common.base.Function<ControllerNode,NodeId>
Function to convert ControllerNode to NodeId.
-
-
Constructor Summary
Constructors Constructor Description ControllerNodeToNodeId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeId
apply(ControllerNode input)
static ControllerNodeToNodeId
toNodeId()
Returns a Function to convert ControllerNode to NodeId.
-
-
-
Method Detail
-
apply
public NodeId apply(ControllerNode input)
- Specified by:
apply
in interfacecom.google.common.base.Function<ControllerNode,NodeId>
- Specified by:
apply
in interfaceFunction<ControllerNode,NodeId>
-
toNodeId
public static ControllerNodeToNodeId toNodeId()
Returns a Function to convert ControllerNode to NodeId.- Returns:
- ControllerNodeToNodeId instance.
-
-