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 boolean
equals(java.lang.Object o)
int
hashCode()
byte[]
key()
Returns the byte representation of key.java.lang.String
toString()
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: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()
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:
toString
in classjava.lang.Object
-
-