Package org.approvej
Record Class Configuration
java.lang.Object
java.lang.Record
org.approvej.Configuration
- Record Components:
defaultPrintFormat- thePrintFormatthat will be used if none is specified otherwisedefaultFileReviewer- theFileReviewerthat will be used if none is specified
@NullMarked
public record Configuration(PrintFormat<Object> defaultPrintFormat, @Nullable FileReviewer defaultFileReviewer)
extends Record
Central configuration class for ApproveJ.
All properties have a default value, which can be overwritten in your src/test/resources/approvej.properties or ~/.config/approvej/approvej.properties.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(PrintFormat<Object> defaultPrintFormat, @Nullable FileReviewer defaultFileReviewer) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable FileReviewerReturns the value of thedefaultFileReviewerrecord component.Returns the value of thedefaultPrintFormatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
configuration
The loadedConfigurationobject.
-
-
Constructor Details
-
Configuration
public Configuration(PrintFormat<Object> defaultPrintFormat, @Nullable FileReviewer defaultFileReviewer) Creates an instance of aConfigurationrecord class.- Parameters:
defaultPrintFormat- the value for thedefaultPrintFormatrecord componentdefaultFileReviewer- the value for thedefaultFileReviewerrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
defaultPrintFormat
Returns the value of thedefaultPrintFormatrecord component.- Returns:
- the value of the
defaultPrintFormatrecord component
-
defaultFileReviewer
Returns the value of thedefaultFileReviewerrecord component.- Returns:
- the value of the
defaultFileReviewerrecord component
-