java.lang.Object
java.lang.Record
org.litebridge.db.spi.query.LogicConditionGroup
- Record Components:
logicOperator- The logical operator used to combine this condition with the previous one.conditionGroup- The condition group itself.
public record LogicConditionGroup(LogicOperator logicOperator, ConditionGroup conditionGroup)
extends Record
Logically combined condition subgroup.
-
Constructor Summary
ConstructorsConstructorDescriptionLogicConditionGroup(LogicOperator logicOperator, ConditionGroup conditionGroup) Creates an instance of aLogicConditionGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionGrouprecord 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
-
LogicConditionGroup
Creates an instance of aLogicConditionGrouprecord class.- Parameters:
logicOperator- the value for thelogicOperatorrecord componentconditionGroup- the value for theconditionGrouprecord 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
-
conditionGroup
Returns the value of theconditionGrouprecord component.- Returns:
- the value of the
conditionGrouprecord component
-