Record Class BaselineReadLimits
java.lang.Object
java.lang.Record
dev.archunitjava.baseline.BaselineReadLimits
public record BaselineReadLimits(int maxBytes, int maxDepth, int maxFindings, int maxSuppressions, int maxValuesPerArray, int maxStringCharacters)
extends Record
Resource limits applied before and during baseline JSON ingestion.
-
Constructor Summary
ConstructorsConstructorDescriptionBaselineReadLimits(int maxBytes, int maxDepth, int maxFindings, int maxSuppressions, int maxValuesPerArray, int maxStringCharacters) Creates an instance of aBaselineReadLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BaselineReadLimitsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxBytes()Returns the value of themaxBytesrecord component.intmaxDepth()Returns the value of themaxDepthrecord component.intReturns the value of themaxFindingsrecord component.intReturns the value of themaxStringCharactersrecord component.intReturns the value of themaxSuppressionsrecord component.intReturns the value of themaxValuesPerArrayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BaselineReadLimits
public BaselineReadLimits(int maxBytes, int maxDepth, int maxFindings, int maxSuppressions, int maxValuesPerArray, int maxStringCharacters) Creates an instance of aBaselineReadLimitsrecord class.- Parameters:
maxBytes- the value for themaxBytesrecord componentmaxDepth- the value for themaxDepthrecord componentmaxFindings- the value for themaxFindingsrecord componentmaxSuppressions- the value for themaxSuppressionsrecord componentmaxValuesPerArray- the value for themaxValuesPerArrayrecord componentmaxStringCharacters- the value for themaxStringCharactersrecord component
-
-
Method Details
-
defaults
-
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. -
maxBytes
public int maxBytes()Returns the value of themaxBytesrecord component.- Returns:
- the value of the
maxBytesrecord component
-
maxDepth
public int maxDepth()Returns the value of themaxDepthrecord component.- Returns:
- the value of the
maxDepthrecord component
-
maxFindings
public int maxFindings()Returns the value of themaxFindingsrecord component.- Returns:
- the value of the
maxFindingsrecord component
-
maxSuppressions
public int maxSuppressions()Returns the value of themaxSuppressionsrecord component.- Returns:
- the value of the
maxSuppressionsrecord component
-
maxValuesPerArray
public int maxValuesPerArray()Returns the value of themaxValuesPerArrayrecord component.- Returns:
- the value of the
maxValuesPerArrayrecord component
-
maxStringCharacters
public int maxStringCharacters()Returns the value of themaxStringCharactersrecord component.- Returns:
- the value of the
maxStringCharactersrecord component
-