Package org.onosproject.net.pi.runtime
Class PiGroupKey
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiGroupKey
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiActionProfileIdactionProfileId()Returns the action profile ID defined by this key.booleanequals(java.lang.Object o)intgroupId()Returns the group ID defined by this key.inthashCode()byte[]key()Returns the byte representation of key.PiTableIdtableId()Returns the table ID defined by this key.java.lang.StringtoString()
-
-
-
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 IDpiActionProfileId- action profile IDgroupId- 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:GroupKeyReturns the byte representation of key.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-