Class ByteArrayWrapper
java.lang.Object
org.springframework.data.redis.connection.util.ByteArrayWrapper
- All Implemented Interfaces:
Comparable<ByteArrayWrapper>
Simple wrapper class used for wrapping arrays so they can be used as keys inside maps.
- Author:
- Costin Leau
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ByteArrayWrapper
-
ByteArrayWrapper
public ByteArrayWrapper(byte[] array)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getArray
public byte[] getArray()Returns the array.- Returns:
- Returns the array
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ByteArrayWrapper>
-