Record Class OracleCacheKey
java.lang.Object
java.lang.Record
io.micronaut.cache.oracle.serialization.OracleCacheKey
- Record Components:
keyHash- The cache key hashkeyPayload- The cache key payload
Canonicalized cache key payload and hash.
- Since:
- 6.2.0
- Author:
- Davide Cocco
-
Constructor Summary
ConstructorsConstructorDescriptionOracleCacheKey(byte[] keyHash, byte[] keyPayload) Creates an instance of aOracleCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]keyHash()Returns the value of thekeyHashrecord component.byte[]Returns the value of thekeyPayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OracleCacheKey
public OracleCacheKey(byte[] keyHash, byte[] keyPayload) Creates an instance of aOracleCacheKeyrecord class.- Parameters:
keyHash- the value for thekeyHashrecord componentkeyPayload- the value for thekeyPayloadrecord component
-
-
Method Details
-
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). -
hashCode
-
toString
-
keyHash
-
keyPayload
public byte[] keyPayload()Returns the value of thekeyPayloadrecord component.- Returns:
- the value of the
keyPayloadrecord component
-