Spring Data Key-Value

org.springframework.data.keyvalue.redis.connection
Class DefaultTuple

java.lang.Object
  extended by org.springframework.data.keyvalue.redis.connection.DefaultTuple
All Implemented Interfaces:
RedisZSetCommands.Tuple
Direct Known Subclasses:
DefaultStringTuple

public class DefaultTuple
extends Object
implements RedisZSetCommands.Tuple

Default implementation for RedisZSetCommands.Tuple interface.

Author:
Costin Leau

Constructor Summary
DefaultTuple(byte[] value, Double score)
          Constructs a new DefaultTuple instance.
 
Method Summary
 Double getScore()
           
 byte[] getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTuple

public DefaultTuple(byte[] value,
                    Double score)
Constructs a new DefaultTuple instance.

Parameters:
value -
score -
Method Detail

getScore

public Double getScore()
Specified by:
getScore in interface RedisZSetCommands.Tuple

getValue

public byte[] getValue()
Specified by:
getValue in interface RedisZSetCommands.Tuple

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.