Record Class ExpireChanges.ExpiryChangeState
java.lang.Object
java.lang.Record
org.springframework.data.redis.core.ExpireChanges.ExpiryChangeState
- Enclosing class:
ExpireChanges<K>
- Since:
- 3.5
- Author:
- Christoph Strobl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpireChanges.ExpiryChangeStatestatic final ExpireChanges.ExpiryChangeStatestatic final ExpireChanges.ExpiryChangeStatestatic final ExpireChanges.ExpiryChangeState -
Constructor Summary
ConstructorsConstructorDescriptionExpiryChangeState(long value) Creates an instance of aExpiryChangeStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanbooleanbooleanisOk()booleanfinal StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Field Details
-
DOES_NOT_EXIST
-
CONDITION_NOT_MET
-
OK
-
EXPIRED
-
-
Constructor Details
-
ExpiryChangeState
public ExpiryChangeState(long value) Creates an instance of aExpiryChangeStaterecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
isOk
public boolean isOk() -
isExpired
public boolean isExpired() -
isMissing
public boolean isMissing() -
isSkipped
public boolean isSkipped() -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-