Package app.ductape.sdk.cache
Record Class CacheTypes.CacheValue
java.lang.Object
java.lang.Record
app.ductape.sdk.cache.CacheTypes.CacheValue
- Enclosing class:
- CacheTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheTag()Returns the value of thecacheTagrecord component.Returns the value of thecomponentTagrecord component.Returns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.expiry()Returns the value of theexpiryrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of theproductTagrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CacheValue
public CacheValue(String key, String value, String cacheTag, String productTag, String componentTag, String componentType, Instant expiry) Creates an instance of aCacheValuerecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord componentcacheTag- the value for thecacheTagrecord componentproductTag- the value for theproductTagrecord componentcomponentTag- the value for thecomponentTagrecord componentcomponentType- the value for thecomponentTyperecord componentexpiry- the value for theexpiryrecord component
-
-
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
public final int 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
cacheTag
Returns the value of thecacheTagrecord component.- Returns:
- the value of the
cacheTagrecord component
-
productTag
Returns the value of theproductTagrecord component.- Returns:
- the value of the
productTagrecord component
-
componentTag
Returns the value of thecomponentTagrecord component.- Returns:
- the value of the
componentTagrecord component
-
componentType
Returns the value of thecomponentTyperecord component.- Returns:
- the value of the
componentTyperecord component
-
expiry
Returns the value of theexpiryrecord component.- Returns:
- the value of the
expiryrecord component
-