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 PiActionProfileId
actionProfileId()
Returns the action profile ID defined by this key.boolean
equals(java.lang.Object o)
int
groupId()
Returns the group ID defined by this key.int
hashCode()
byte[]
key()
Returns the byte representation of key.PiTableId
tableId()
Returns the table ID defined by this key.java.lang.String
toString()
-
-
-
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:GroupKey
Returns the byte representation of key.
-
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
-
-