Record Class RedisTypeCache.TypeCacheEntry
java.lang.Object
java.lang.Record
org.gcube.informationsystem.resourceregistry.types.redis.RedisTypeCache.TypeCacheEntry
- Record Components:
uuid- the type's UUIDtypeName- the canonical type namejson- the serialized single-type JSON, exactly as produced by the databasesupertypeNames- the direct supertype names, may benulllinearization- the precomputed C3 linearization, may benull
- Enclosing class:
- RedisTypeCache
public static record RedisTypeCache.TypeCacheEntry(UUID uuid, String typeName, String json, Collection<String> supertypeNames, List<String> linearization)
extends Record
One type as written by
RedisTypeCache.saveAll(List, long).-
Constructor Summary
ConstructorsConstructorDescriptionTypeCacheEntry(UUID uuid, String typeName, String json, Collection<String> supertypeNames, List<String> linearization) Creates an instance of aTypeCacheEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.json()Returns the value of thejsonrecord component.Returns the value of thelinearizationrecord component.Returns the value of thesupertypeNamesrecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
TypeCacheEntry
public TypeCacheEntry(UUID uuid, String typeName, String json, Collection<String> supertypeNames, List<String> linearization) Creates an instance of aTypeCacheEntryrecord class.- Parameters:
uuid- the value for theuuidrecord componenttypeName- the value for thetypeNamerecord componentjson- the value for thejsonrecord componentsupertypeNames- the value for thesupertypeNamesrecord componentlinearization- the value for thelinearizationrecord 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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
json
Returns the value of thejsonrecord component.- Returns:
- the value of the
jsonrecord component
-
supertypeNames
Returns the value of thesupertypeNamesrecord component.- Returns:
- the value of the
supertypeNamesrecord component
-
linearization
Returns the value of thelinearizationrecord component.- Returns:
- the value of the
linearizationrecord component
-