Package cool.scx.common.jackson
Record Class BuildOptions
java.lang.Object
java.lang.Record
cool.scx.common.jackson.BuildOptions
-
Constructor Summary
ConstructorsConstructorDescriptionBuildOptions(boolean ignoreNullValue, boolean ignoreJsonIgnore, boolean failOnUnknownProperties, boolean failOnEmptyBeans, Map<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility> visibilityConfig) Creates an instance of aBuildOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefailOnEmptyBeansrecord component.booleanReturns the value of thefailOnUnknownPropertiesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreJsonIgnorerecord component.booleanReturns the value of theignoreNullValuerecord component.final StringtoString()Returns a string representation of this record class.Map<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility> Returns the value of thevisibilityConfigrecord component.
-
Constructor Details
-
BuildOptions
public BuildOptions(boolean ignoreNullValue, boolean ignoreJsonIgnore, boolean failOnUnknownProperties, boolean failOnEmptyBeans, Map<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility> visibilityConfig) Creates an instance of aBuildOptionsrecord class.- Parameters:
ignoreNullValue- the value for theignoreNullValuerecord componentignoreJsonIgnore- the value for theignoreJsonIgnorerecord componentfailOnUnknownProperties- the value for thefailOnUnknownPropertiesrecord componentfailOnEmptyBeans- the value for thefailOnEmptyBeansrecord componentvisibilityConfig- the value for thevisibilityConfigrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
ignoreNullValue
public boolean ignoreNullValue()Returns the value of theignoreNullValuerecord component.- Returns:
- the value of the
ignoreNullValuerecord component
-
ignoreJsonIgnore
public boolean ignoreJsonIgnore()Returns the value of theignoreJsonIgnorerecord component.- Returns:
- the value of the
ignoreJsonIgnorerecord component
-
failOnUnknownProperties
public boolean failOnUnknownProperties()Returns the value of thefailOnUnknownPropertiesrecord component.- Returns:
- the value of the
failOnUnknownPropertiesrecord component
-
failOnEmptyBeans
public boolean failOnEmptyBeans()Returns the value of thefailOnEmptyBeansrecord component.- Returns:
- the value of the
failOnEmptyBeansrecord component
-
visibilityConfig
public Map<com.fasterxml.jackson.annotation.PropertyAccessor,com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility> visibilityConfig()Returns the value of thevisibilityConfigrecord component.- Returns:
- the value of the
visibilityConfigrecord component
-