Record Class MemoryCache.CacheEntry
java.lang.Object
java.lang.Record
org.chenile.cconfig.sdk.cache.MemoryCache.CacheEntry
- Enclosing class:
MemoryCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecreatedAtMillisrecord component.The field for thejsonMaprecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCacheEntry(Map<String, Object> jsonMap, long createdAtMillis) Creates an instance of aCacheEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreatedAtMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jsonMap()Returns the value of thejsonMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
jsonMap
-
createdAtMillis
private final long createdAtMillisThe field for thecreatedAtMillisrecord component.
-
-
Constructor Details
-
CacheEntry
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
jsonMap
-
createdAtMillis
public long createdAtMillis()Returns the value of thecreatedAtMillisrecord component.- Returns:
- the value of the
createdAtMillisrecord component
-