Module litebridge.orm
Record Class LogicConditionGroupSpec
java.lang.Object
java.lang.Record
org.litebridge.orm.api.select.model.LogicConditionGroupSpec
- Record Components:
logicOperator- the logical operator.conditionGroupSpec- the condition group specification.
public record LogicConditionGroupSpec(LogicOperator logicOperator, ConditionGroupSpec conditionGroupSpec)
extends Record
Specification for a logical condition group.
-
Constructor Summary
ConstructorsConstructorDescriptionLogicConditionGroupSpec(LogicOperator logicOperator) Constructs a newLogicConditionGroupSpecwith the specified logical operator.LogicConditionGroupSpec(LogicOperator logicOperator, ConditionGroupSpec conditionGroupSpec) Creates an instance of aLogicConditionGroupSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionGroupSpecrecord 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 thelogicOperatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogicConditionGroupSpec
Constructs a newLogicConditionGroupSpecwith the specified logical operator.- Parameters:
logicOperator- the logical operator.
-
LogicConditionGroupSpec
Creates an instance of aLogicConditionGroupSpecrecord class.- Parameters:
logicOperator- the value for thelogicOperatorrecord componentconditionGroupSpec- the value for theconditionGroupSpecrecord 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). -
logicOperator
Returns the value of thelogicOperatorrecord component.- Returns:
- the value of the
logicOperatorrecord component
-
conditionGroupSpec
Returns the value of theconditionGroupSpecrecord component.- Returns:
- the value of the
conditionGroupSpecrecord component
-