Class 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 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 identifier
        value - 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 identifier
        value - 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 identifier
        value - 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 identifier
        value - 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 identifier
        value - 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 identifier
        value - 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object