Package org.onosproject.cluster
Class ControllerNodeToNodeId
- java.lang.Object
-
- org.onosproject.cluster.ControllerNodeToNodeId
-
- All Implemented Interfaces:
com.google.common.base.Function<ControllerNode,NodeId>
,java.util.function.Function<ControllerNode,NodeId>
public final class ControllerNodeToNodeId extends java.lang.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 interfacejava.util.function.Function<ControllerNode,NodeId>
-
toNodeId
public static ControllerNodeToNodeId toNodeId()
Returns a Function to convert ControllerNode to NodeId.- Returns:
- ControllerNodeToNodeId instance.
-
-