Spring Data Key-Value

org.springframework.data.keyvalue.redis.connection.util
Class ByteArrayWrapper

java.lang.Object
  extended by org.springframework.data.keyvalue.redis.connection.util.ByteArrayWrapper

public class ByteArrayWrapper
extends Object

Simple wrapper class used for wrapping arrays so they can be used as keys inside maps.

Author:
Costin Leau

Constructor Summary
ByteArrayWrapper(byte[] array)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getArray()
          Returns the array.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayWrapper

public ByteArrayWrapper(byte[] array)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getArray

public byte[] getArray()
Returns the array.

Returns:
Returns the array

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.