Class PiGroupKey

  • All Implemented Interfaces:
    GroupKey

    public final class PiGroupKey
    extends java.lang.Object
    implements GroupKey
    Implementation of GroupKey for the case of a protocol-independent pipeline.
    • Constructor Summary

      Constructors 
      Constructor Description
      PiGroupKey​(PiTableId tableId, PiActionProfileId piActionProfileId, int groupId)
      Returns a new group key for the given table ID, action profile ID, and group ID.
    • Constructor Detail

      • PiGroupKey

        public PiGroupKey​(PiTableId tableId,
                          PiActionProfileId piActionProfileId,
                          int groupId)
        Returns a new group key for the given table ID, action profile ID, and group ID.
        Parameters:
        tableId - table ID
        piActionProfileId - action profile ID
        groupId - group ID
    • Method Detail

      • tableId

        public PiTableId tableId()
        Returns the table ID defined by this key.
        Returns:
        table ID
      • groupId

        public int groupId()
        Returns the group ID defined by this key.
        Returns:
        group ID
      • actionProfileId

        public PiActionProfileId actionProfileId()
        Returns the action profile ID defined by this key.
        Returns:
        action profile ID
      • key

        public byte[] key()
        Description copied from interface: GroupKey
        Returns the byte representation of key.
        Specified by:
        key in interface GroupKey
        Returns:
        byte array
      • 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