Package io.mateu.dtos
Record Class RuleDto
java.lang.Object
java.lang.Record
io.mateu.dtos.RuleDto
public record RuleDto(String filter, RuleActionDto action, String fieldName, RuleFieldAttributeDto fieldAttribute, Object value, String expression, RuleResultDto result, String actionId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRuleDto(String filter, RuleActionDto action, String fieldName, RuleFieldAttributeDto fieldAttribute, Object value, String expression, RuleResultDto result, String actionId) Creates an instance of aRuleDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.actionId()Returns the value of theactionIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.Returns the value of thefieldAttributerecord component.Returns the value of thefieldNamerecord component.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
RuleDto
public RuleDto(String filter, RuleActionDto action, String fieldName, RuleFieldAttributeDto fieldAttribute, Object value, String expression, RuleResultDto result, String actionId) Creates an instance of aRuleDtorecord class.- Parameters:
filter- the value for thefilterrecord componentaction- the value for theactionrecord componentfieldName- the value for thefieldNamerecord componentfieldAttribute- the value for thefieldAttributerecord componentvalue- the value for thevaluerecord componentexpression- the value for theexpressionrecord componentresult- the value for theresultrecord componentactionId- the value for theactionIdrecord 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). -
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
fieldAttribute
Returns the value of thefieldAttributerecord component.- Returns:
- the value of the
fieldAttributerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
actionId
Returns the value of theactionIdrecord component.- Returns:
- the value of the
actionIdrecord component
-