Spring Data Key-Value

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

java.lang.Object
  extended by org.springframework.data.keyvalue.redis.connection.DefaultTuple
      extended by org.springframework.data.keyvalue.redis.connection.DefaultStringTuple
All Implemented Interfaces:
RedisZSetCommands.Tuple, StringRedisConnection.StringTuple

public class DefaultStringTuple
extends DefaultTuple
implements StringRedisConnection.StringTuple

Default implementation for StringRedisConnection.StringTuple interface.

Author:
Costin Leau

Constructor Summary
DefaultStringTuple(byte[] value, String valueAsString, Double score)
          Constructs a new DefaultStringTuple instance.
DefaultStringTuple(RedisZSetCommands.Tuple tuple, String valueAsString)
          Constructs a new DefaultStringTuple instance.
 
Method Summary
 String getValueAsString()
           
 
Methods inherited from class org.springframework.data.keyvalue.redis.connection.DefaultTuple
getScore, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisZSetCommands.Tuple
getScore, getValue
 

Constructor Detail

DefaultStringTuple

public DefaultStringTuple(byte[] value,
                          String valueAsString,
                          Double score)
Constructs a new DefaultStringTuple instance.

Parameters:
value -
score -

DefaultStringTuple

public DefaultStringTuple(RedisZSetCommands.Tuple tuple,
                          String valueAsString)
Constructs a new DefaultStringTuple instance.

Parameters:
tuple -
valueAsString -
Method Detail

getValueAsString

public String getValueAsString()
Specified by:
getValueAsString in interface StringRedisConnection.StringTuple

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.