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.ObjectInstance of an action runtime parameter in a match+action table of a protocol-independent pipeline.
- 
- 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()PiActionParamIdid()Returns the identifier of this parameter.java.lang.StringtoString()ImmutableByteSequencevalue()Returns the value of this parameter.
 
- 
- 
- 
Constructor Detail- 
PiActionParampublic PiActionParam(PiActionParamId id, ImmutableByteSequence value) Creates an action's runtime parameter for the given param ID and byte sequence value.- Parameters:
- id- parameter identifier
- value- value
 
 - 
PiActionParampublic PiActionParam(PiActionParamId id, byte value) Creates an action's runtime parameter for the given param ID and byte value.- Parameters:
- id- parameter identifier
- value- value
 
 - 
PiActionParampublic PiActionParam(PiActionParamId id, short value) Creates an action's runtime parameter for the given param ID and short value.- Parameters:
- id- parameter identifier
- value- value
 
 - 
PiActionParampublic PiActionParam(PiActionParamId id, int value) Creates an action's runtime parameter for the given param ID and int value.- Parameters:
- id- parameter identifier
- value- value
 
 - 
PiActionParampublic PiActionParam(PiActionParamId id, long value) Creates an action's runtime parameter for the given param ID and long value.- Parameters:
- id- parameter identifier
- value- value
 
 - 
PiActionParampublic PiActionParam(PiActionParamId id, byte[] value) Creates an action's runtime parameter for the given param ID and byte array value.- Parameters:
- id- parameter identifier
- value- value
 
 
- 
 - 
Method Detail- 
idpublic PiActionParamId id() Returns the identifier of this parameter.- Returns:
- parameter identifier
 
 - 
valuepublic ImmutableByteSequence value() Returns the value of this parameter.- Returns:
- parameter value
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-