Record Class QueryOption.Info
java.lang.Object
java.lang.Record
cool.scx.data.query.QueryOption.Info
- Enclosing class:
QueryOption
public static record QueryOption.Info(boolean replace, boolean skipIfNull, boolean skipIfEmptyList, boolean useOriginalName, boolean useJsonExtract, boolean useOriginalValue)
extends Record
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionInfo(boolean replace, boolean skipIfNull, boolean skipIfEmptyList, boolean useOriginalName, boolean useJsonExtract, boolean useOriginalValue) Creates an instance of aInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanreplace()Returns the value of thereplacerecord component.booleanReturns the value of theskipIfEmptyListrecord component.booleanReturns the value of theskipIfNullrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseJsonExtractrecord component.booleanReturns the value of theuseOriginalNamerecord component.booleanReturns the value of theuseOriginalValuerecord component.
-
Constructor Details
-
Info
public Info(boolean replace, boolean skipIfNull, boolean skipIfEmptyList, boolean useOriginalName, boolean useJsonExtract, boolean useOriginalValue) Creates an instance of aInforecord class.- Parameters:
replace- the value for thereplacerecord componentskipIfNull- the value for theskipIfNullrecord componentskipIfEmptyList- the value for theskipIfEmptyListrecord componentuseOriginalName- the value for theuseOriginalNamerecord componentuseJsonExtract- the value for theuseJsonExtractrecord componentuseOriginalValue- the value for theuseOriginalValuerecord 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 with thecomparemethod from their corresponding wrapper classes. -
replace
public boolean replace()Returns the value of thereplacerecord component.- Returns:
- the value of the
replacerecord component
-
skipIfNull
public boolean skipIfNull()Returns the value of theskipIfNullrecord component.- Returns:
- the value of the
skipIfNullrecord component
-
skipIfEmptyList
public boolean skipIfEmptyList()Returns the value of theskipIfEmptyListrecord component.- Returns:
- the value of the
skipIfEmptyListrecord component
-
useOriginalName
public boolean useOriginalName()Returns the value of theuseOriginalNamerecord component.- Returns:
- the value of the
useOriginalNamerecord component
-
useJsonExtract
public boolean useJsonExtract()Returns the value of theuseJsonExtractrecord component.- Returns:
- the value of the
useJsonExtractrecord component
-
useOriginalValue
public boolean useOriginalValue()Returns the value of theuseOriginalValuerecord component.- Returns:
- the value of the
useOriginalValuerecord component
-