Record Class ExpireChanges.ExpiryChangeState
java.lang.Object
java.lang.Record
io.valkey.springframework.data.valkey.core.ExpireChanges.ExpiryChangeState
- Enclosing class:
- ExpireChanges<K>
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-