Class DefaultStringTuple
java.lang.Object
org.springframework.data.redis.connection.zset.DefaultTuple
org.springframework.data.redis.connection.DefaultStringTuple
- All Implemented Interfaces:
Comparable<Double>
,StringRedisConnection.StringTuple
,Tuple
Default implementation for
StringRedisConnection.StringTuple
interface.- Author:
- Costin Leau, Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionDefaultStringTuple
(byte[] value, String valueAsString, Double score) Constructs a newDefaultStringTuple
instance.DefaultStringTuple
(String valueAsString, double score) Constructs a newDefaultStringTuple
instance.DefaultStringTuple
(Tuple tuple, String valueAsString) Constructs a newDefaultStringTuple
instance. -
Method Summary
Methods inherited from class org.springframework.data.redis.connection.zset.DefaultTuple
compareTo, getScore, getValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
DefaultStringTuple
Constructs a newDefaultStringTuple
instance.- Parameters:
value
-score
-
-
DefaultStringTuple
Constructs a newDefaultStringTuple
instance.- Parameters:
valueAsString
- must not be null.score
-- Since:
- 2.6
-
DefaultStringTuple
Constructs a newDefaultStringTuple
instance.- Parameters:
tuple
-valueAsString
-
-
-
Method Details
-
getValueAsString
- Specified by:
getValueAsString
in interfaceStringRedisConnection.StringTuple
-
toString
- Overrides:
toString
in classDefaultTuple
-
equals
- Overrides:
equals
in classDefaultTuple
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultTuple
-