Record Class PrimaryKeyValue
java.lang.Object
java.lang.Record
com.nimbusds.infinispan.persistence.dynamodb.PrimaryKeyValue
- Record Components:
hashKeyValue
- The hash key value.rangeKeyValue
- The optional range key value.
DynamoDB primary key value (hash key, with optional range key).
-
Constructor Summary
ConstructorDescriptionPrimaryKeyValue
(String hashKeyValue, String rangeKeyValue) Creates a new DynamoDB primary key value. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehashKeyValue
record component.Returns the value of therangeKeyValue
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PrimaryKeyValue
Creates a new DynamoDB primary key value.- Parameters:
hashKeyValue
- The hash key value. Must not benull
.rangeKeyValue
- The optional range key value,null
if none.
-
-
Method Details
-
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. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object)
. -
hashKeyValue
Returns the value of thehashKeyValue
record component.- Returns:
- the value of the
hashKeyValue
record component
-
rangeKeyValue
Returns the value of therangeKeyValue
record component.- Returns:
- the value of the
rangeKeyValue
record component
-