Package org.onosproject.net.pi.runtime
Class PiActionParam
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiActionParam
-
@Beta public final class PiActionParam extends java.lang.Object
Instance of an action runtime parameter in a match+action table of a protocol-independent pipeline.
-
-
Constructor Summary
Constructors Constructor Description PiActionParam(PiActionParamId id, byte value)
Creates an action's runtime parameter for the given param ID and byte value.PiActionParam(PiActionParamId id, byte[] value)
Creates an action's runtime parameter for the given param ID and byte array value.PiActionParam(PiActionParamId id, int value)
Creates an action's runtime parameter for the given param ID and int value.PiActionParam(PiActionParamId id, long value)
Creates an action's runtime parameter for the given param ID and long value.PiActionParam(PiActionParamId id, short value)
Creates an action's runtime parameter for the given param ID and short value.PiActionParam(PiActionParamId id, ImmutableByteSequence value)
Creates an action's runtime parameter for the given param ID and byte sequence value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
PiActionParamId
id()
Returns the identifier of this parameter.java.lang.String
toString()
ImmutableByteSequence
value()
Returns the value of this parameter.
-
-
-
Constructor Detail
-
PiActionParam
public PiActionParam(PiActionParamId id, ImmutableByteSequence value)
Creates an action's runtime parameter for the given param ID and byte sequence value.- Parameters:
id
- parameter identifiervalue
- value
-
PiActionParam
public PiActionParam(PiActionParamId id, byte value)
Creates an action's runtime parameter for the given param ID and byte value.- Parameters:
id
- parameter identifiervalue
- value
-
PiActionParam
public PiActionParam(PiActionParamId id, short value)
Creates an action's runtime parameter for the given param ID and short value.- Parameters:
id
- parameter identifiervalue
- value
-
PiActionParam
public PiActionParam(PiActionParamId id, int value)
Creates an action's runtime parameter for the given param ID and int value.- Parameters:
id
- parameter identifiervalue
- value
-
PiActionParam
public PiActionParam(PiActionParamId id, long value)
Creates an action's runtime parameter for the given param ID and long value.- Parameters:
id
- parameter identifiervalue
- value
-
PiActionParam
public PiActionParam(PiActionParamId id, byte[] value)
Creates an action's runtime parameter for the given param ID and byte array value.- Parameters:
id
- parameter identifiervalue
- value
-
-
Method Detail
-
id
public PiActionParamId id()
Returns the identifier of this parameter.- Returns:
- parameter identifier
-
value
public ImmutableByteSequence value()
Returns the value of this parameter.- Returns:
- parameter value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-