Package org.onosproject.net.flow
Class FlowId
- java.lang.Object
-
- org.onlab.util.Identifier<Long>
-
- org.onosproject.net.flow.FlowId
-
public final class FlowId extends Identifier<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 StringtoString()Returns a string representation of a DeviceKeyId.longvalue()Gets the flow ID value.static FlowIdvalueOf(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 String toString()
Description copied from class:IdentifierReturns a string representation of a DeviceKeyId.- Overrides:
toStringin classIdentifier<Long>- Returns:
- string
-
-