Record Class BuildOptions
java.lang.Object
java.lang.Record
cool.scx.common.jackson.BuildOptions
public record BuildOptions(boolean ignoreNullValue, boolean ignoreJsonIgnore, boolean failOnUnknownProperties, boolean failOnEmptyBeans, Map<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility> visibilityConfig)
extends Record
BuildOptions
- Version:
- 0.0.1
- Author:
- scx567888
-
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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-