Record Class SkipIfInfo
java.lang.Object
java.lang.Record
cool.scx.data.query.SkipIfInfo
public record SkipIfInfo(boolean skipIfNull, boolean skipIfEmptyList, boolean skipIfEmptyString, boolean skipIfBlankString)
extends Record
SkipIfInfo
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionSkipIfInfo(boolean skipIfNull, boolean skipIfEmptyList, boolean skipIfEmptyString, boolean skipIfBlankString) Creates an instance of aSkipIfInforecord 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.static SkipIfInfoofSkipIfInfo(BuildControl... controls) booleanshouldSkip(Object value1) booleanshouldSkip(Object value1, Object value2) booleanReturns the value of theskipIfBlankStringrecord component.booleanReturns the value of theskipIfEmptyListrecord component.booleanReturns the value of theskipIfEmptyStringrecord component.booleanReturns the value of theskipIfNullrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkipIfInfo
public SkipIfInfo(boolean skipIfNull, boolean skipIfEmptyList, boolean skipIfEmptyString, boolean skipIfBlankString) Creates an instance of aSkipIfInforecord class.- Parameters:
skipIfNull- the value for theskipIfNullrecord componentskipIfEmptyList- the value for theskipIfEmptyListrecord componentskipIfEmptyString- the value for theskipIfEmptyStringrecord componentskipIfBlankString- the value for theskipIfBlankStringrecord component
-
-
Method Details
-
ofSkipIfInfo
-
shouldSkip
-
shouldSkip
-
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. -
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
-
skipIfEmptyString
public boolean skipIfEmptyString()Returns the value of theskipIfEmptyStringrecord component.- Returns:
- the value of the
skipIfEmptyStringrecord component
-
skipIfBlankString
public boolean skipIfBlankString()Returns the value of theskipIfBlankStringrecord component.- Returns:
- the value of the
skipIfBlankStringrecord component
-