Package io.jmix.dynmodel
Record Class DynamicCalculatedAttributeEvaluationContext
java.lang.Object
java.lang.Record
io.jmix.dynmodel.DynamicCalculatedAttributeEvaluationContext
- Record Components:
entity- entity instance that owns the calculated attributeproperty- calculated attribute metadata propertycalculated- calculated attribute definition
public record DynamicCalculatedAttributeEvaluationContext(Object entity, MetaProperty property, DynamicCalculatedAttributeDefinition calculated)
extends Record
Carries the entity, metadata property, and definition used to evaluate a calculated dynamic attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicCalculatedAttributeEvaluationContext(Object entity, MetaProperty property, DynamicCalculatedAttributeDefinition calculated) Creates an instance of aDynamicCalculatedAttributeEvaluationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalculatedrecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicCalculatedAttributeEvaluationContext
public DynamicCalculatedAttributeEvaluationContext(Object entity, MetaProperty property, DynamicCalculatedAttributeDefinition calculated) Creates an instance of aDynamicCalculatedAttributeEvaluationContextrecord class.- Parameters:
entity- the value for theentityrecord componentproperty- the value for thepropertyrecord componentcalculated- the value for thecalculatedrecord 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). -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
calculated
Returns the value of thecalculatedrecord component.- Returns:
- the value of the
calculatedrecord component
-