Record Class InputEnumerationOptions
java.lang.Object
java.lang.Record
dev.archunitjava.importer.InputEnumerationOptions
public record InputEnumerationOptions(int maximumInputs, int maximumResourcesPerInput, int maximumDirectoryDepth, int maximumDirectoryEntries, int maximumArchiveEntries, long maximumArchiveBytes, long maximumArchiveUncompressedBytes, int maximumCompressionRatio, int maximumArchiveNestingDepth, int maximumResourceNameCharacters, int maximumDiagnostics)
extends Record
Immutable safety bounds for class-file input traversal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final intstatic final longstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionInputEnumerationOptions(int maximumResourcesPerInput, int maximumDirectoryDepth, int maximumDirectoryEntries, int maximumArchiveEntries) InputEnumerationOptions(int maximumInputs, int maximumResourcesPerInput, int maximumDirectoryDepth, int maximumDirectoryEntries, int maximumArchiveEntries, long maximumArchiveBytes, long maximumArchiveUncompressedBytes, int maximumCompressionRatio, int maximumArchiveNestingDepth, int maximumResourceNameCharacters, int maximumDiagnostics) Creates an instance of aInputEnumerationOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputEnumerationOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaximumArchiveBytesrecord component.intReturns the value of themaximumArchiveEntriesrecord component.intReturns the value of themaximumArchiveNestingDepthrecord component.longReturns the value of themaximumArchiveUncompressedBytesrecord component.intReturns the value of themaximumCompressionRatiorecord component.intReturns the value of themaximumDiagnosticsrecord component.intReturns the value of themaximumDirectoryDepthrecord component.intReturns the value of themaximumDirectoryEntriesrecord component.intReturns the value of themaximumInputsrecord component.intReturns the value of themaximumResourceNameCharactersrecord component.intReturns the value of themaximumResourcesPerInputrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_MAXIMUM_INPUTS
public static final int DEFAULT_MAXIMUM_INPUTS- See Also:
-
DEFAULT_MAXIMUM_RESOURCES
public static final int DEFAULT_MAXIMUM_RESOURCES- See Also:
-
DEFAULT_MAXIMUM_DIRECTORY_DEPTH
public static final int DEFAULT_MAXIMUM_DIRECTORY_DEPTH- See Also:
-
DEFAULT_MAXIMUM_DIRECTORY_ENTRIES
public static final int DEFAULT_MAXIMUM_DIRECTORY_ENTRIES- See Also:
-
DEFAULT_MAXIMUM_ARCHIVE_ENTRIES
public static final int DEFAULT_MAXIMUM_ARCHIVE_ENTRIES- See Also:
-
DEFAULT_MAXIMUM_ARCHIVE_BYTES
public static final long DEFAULT_MAXIMUM_ARCHIVE_BYTES- See Also:
-
DEFAULT_MAXIMUM_ARCHIVE_UNCOMPRESSED_BYTES
public static final long DEFAULT_MAXIMUM_ARCHIVE_UNCOMPRESSED_BYTES- See Also:
-
DEFAULT_MAXIMUM_COMPRESSION_RATIO
public static final int DEFAULT_MAXIMUM_COMPRESSION_RATIO- See Also:
-
DEFAULT_MAXIMUM_ARCHIVE_NESTING_DEPTH
public static final int DEFAULT_MAXIMUM_ARCHIVE_NESTING_DEPTH- See Also:
-
DEFAULT_MAXIMUM_RESOURCE_NAME_CHARACTERS
public static final int DEFAULT_MAXIMUM_RESOURCE_NAME_CHARACTERS- See Also:
-
DEFAULT_MAXIMUM_DIAGNOSTICS
public static final int DEFAULT_MAXIMUM_DIAGNOSTICS- See Also:
-
-
Constructor Details
-
InputEnumerationOptions
public InputEnumerationOptions(int maximumInputs, int maximumResourcesPerInput, int maximumDirectoryDepth, int maximumDirectoryEntries, int maximumArchiveEntries, long maximumArchiveBytes, long maximumArchiveUncompressedBytes, int maximumCompressionRatio, int maximumArchiveNestingDepth, int maximumResourceNameCharacters, int maximumDiagnostics) Creates an instance of aInputEnumerationOptionsrecord class.- Parameters:
maximumInputs- the value for themaximumInputsrecord componentmaximumResourcesPerInput- the value for themaximumResourcesPerInputrecord componentmaximumDirectoryDepth- the value for themaximumDirectoryDepthrecord componentmaximumDirectoryEntries- the value for themaximumDirectoryEntriesrecord componentmaximumArchiveEntries- the value for themaximumArchiveEntriesrecord componentmaximumArchiveBytes- the value for themaximumArchiveBytesrecord componentmaximumArchiveUncompressedBytes- the value for themaximumArchiveUncompressedBytesrecord componentmaximumCompressionRatio- the value for themaximumCompressionRatiorecord componentmaximumArchiveNestingDepth- the value for themaximumArchiveNestingDepthrecord componentmaximumResourceNameCharacters- the value for themaximumResourceNameCharactersrecord componentmaximumDiagnostics- the value for themaximumDiagnosticsrecord component
-
InputEnumerationOptions
public InputEnumerationOptions(int maximumResourcesPerInput, int maximumDirectoryDepth, int maximumDirectoryEntries, int maximumArchiveEntries)
-
-
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. -
maximumInputs
public int maximumInputs()Returns the value of themaximumInputsrecord component.- Returns:
- the value of the
maximumInputsrecord component
-
maximumResourcesPerInput
public int maximumResourcesPerInput()Returns the value of themaximumResourcesPerInputrecord component.- Returns:
- the value of the
maximumResourcesPerInputrecord component
-
maximumDirectoryDepth
public int maximumDirectoryDepth()Returns the value of themaximumDirectoryDepthrecord component.- Returns:
- the value of the
maximumDirectoryDepthrecord component
-
maximumDirectoryEntries
public int maximumDirectoryEntries()Returns the value of themaximumDirectoryEntriesrecord component.- Returns:
- the value of the
maximumDirectoryEntriesrecord component
-
maximumArchiveEntries
public int maximumArchiveEntries()Returns the value of themaximumArchiveEntriesrecord component.- Returns:
- the value of the
maximumArchiveEntriesrecord component
-
maximumArchiveBytes
public long maximumArchiveBytes()Returns the value of themaximumArchiveBytesrecord component.- Returns:
- the value of the
maximumArchiveBytesrecord component
-
maximumArchiveUncompressedBytes
public long maximumArchiveUncompressedBytes()Returns the value of themaximumArchiveUncompressedBytesrecord component.- Returns:
- the value of the
maximumArchiveUncompressedBytesrecord component
-
maximumCompressionRatio
public int maximumCompressionRatio()Returns the value of themaximumCompressionRatiorecord component.- Returns:
- the value of the
maximumCompressionRatiorecord component
-
maximumArchiveNestingDepth
public int maximumArchiveNestingDepth()Returns the value of themaximumArchiveNestingDepthrecord component.- Returns:
- the value of the
maximumArchiveNestingDepthrecord component
-
maximumResourceNameCharacters
public int maximumResourceNameCharacters()Returns the value of themaximumResourceNameCharactersrecord component.- Returns:
- the value of the
maximumResourceNameCharactersrecord component
-
maximumDiagnostics
public int maximumDiagnostics()Returns the value of themaximumDiagnosticsrecord component.- Returns:
- the value of the
maximumDiagnosticsrecord component
-