Record Class ClassFileReaderOptions
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ClassFileReaderOptions
Immutable safety bounds for reading individual class resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionClassFileReaderOptions(int maximumClassBytes) ClassFileReaderOptions(int maximumClassBytes, int maximumDiagnostics) Creates an instance of aClassFileReaderOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassFileReaderOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumClassBytesrecord component.intReturns the value of themaximumDiagnosticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_MAXIMUM_CLASS_BYTES
public static final int DEFAULT_MAXIMUM_CLASS_BYTES- See Also:
-
DEFAULT_MAXIMUM_DIAGNOSTICS
public static final int DEFAULT_MAXIMUM_DIAGNOSTICS- See Also:
-
-
Constructor Details
-
ClassFileReaderOptions
public ClassFileReaderOptions(int maximumClassBytes, int maximumDiagnostics) Creates an instance of aClassFileReaderOptionsrecord class.- Parameters:
maximumClassBytes- the value for themaximumClassBytesrecord componentmaximumDiagnostics- the value for themaximumDiagnosticsrecord component
-
ClassFileReaderOptions
public ClassFileReaderOptions(int maximumClassBytes)
-
-
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. -
maximumClassBytes
public int maximumClassBytes()Returns the value of themaximumClassBytesrecord component.- Returns:
- the value of the
maximumClassBytesrecord component
-
maximumDiagnostics
public int maximumDiagnostics()Returns the value of themaximumDiagnosticsrecord component.- Returns:
- the value of the
maximumDiagnosticsrecord component
-