Record Class EntityCache<E>
java.lang.Object
java.lang.Record
ch.nolix.systemapi.objectdata.structure.EntityCache<E>
-
Constructor Summary
ConstructorsConstructorDescriptionEntityCache(String entityId, String nullableTableId, E nullableEntity) Creates an instance of aEntityCacherecord class. -
Method Summary
Modifier and TypeMethodDescriptionentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenullableEntityrecord component.Returns the value of thenullableTableIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityCache
Creates an instance of aEntityCacherecord class.- Parameters:
entityId- the value for theentityIdrecord componentnullableTableId- the value for thenullableTableIdrecord componentnullableEntity- the value for thenullableEntityrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
entityId
Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
nullableTableId
Returns the value of thenullableTableIdrecord component.- Returns:
- the value of the
nullableTableIdrecord component
-
nullableEntity
Returns the value of thenullableEntityrecord component.- Returns:
- the value of the
nullableEntityrecord component
-