Package org.onosproject.net.group
Class DefaultGroupKey
- java.lang.Object
-
- org.onosproject.net.group.DefaultGroupKey
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupKey(byte[] key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()byte[]key()Returns the byte representation of key.java.lang.StringtoString()Returns a hex string representation of the byte array that is used as a group key.
-
-
-
Method Detail
-
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()
Returns a hex string representation of the byte array that is used as a group key. This solution was adapted from http://stackoverflow.com/questions/9655181/- Overrides:
toStringin classjava.lang.Object
-
-