Package org.onosproject.net.flow
Class FlowId
- java.lang.Object
-
- org.onlab.util.Identifier<java.lang.Long>
-
- org.onosproject.net.flow.FlowId
-
public final class FlowId extends Identifier<java.lang.Long>
Representation of a Flow ID.
-
-
Field Summary
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns a string representation of a DeviceKeyId.long
value()
Gets the flow ID value.static FlowId
valueOf(long id)
Creates a flow ID from a long value.-
Methods inherited from class org.onlab.util.Identifier
equals, hashCode, id
-
-
-
-
Method Detail
-
valueOf
public static FlowId valueOf(long id)
Creates a flow ID from a long value.- Parameters:
id
- long value- Returns:
- flow ID
-
value
public long value()
Gets the flow ID value.- Returns:
- flow ID value as long
-
toString
public java.lang.String toString()
Description copied from class:Identifier
Returns a string representation of a DeviceKeyId.- Overrides:
toString
in classIdentifier<java.lang.Long>
- Returns:
- string
-
-