Record Class Settings
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.spi.Settings
- Record Components:
contract- the name of the contract, as the project subscribes to itbasePackage- the package the core classes go ingenerateDocs- whether descriptions come from the contract; whenfalse, every description isdescriptionPlaceholderdescriptionPlaceholder- the description used whengenerateDocsisfalserecursionDepth- how many times a recursive reference is followed before the rest is documented as a subsection
public record Settings(String contract, String basePackage, boolean generateDocs, String descriptionPlaceholder, int recursionDepth)
extends Record
How a project has asked for one contract's classes to be generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasePackagerecord component.contract()Returns the value of thecontractrecord component.Returns the value of thedescriptionPlaceholderrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegenerateDocsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therecursionDepthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Settings
public Settings(String contract, String basePackage, boolean generateDocs, String descriptionPlaceholder, int recursionDepth) Creates an instance of aSettingsrecord class.- Parameters:
contract- the value for thecontractrecord componentbasePackage- the value for thebasePackagerecord componentgenerateDocs- the value for thegenerateDocsrecord componentdescriptionPlaceholder- the value for thedescriptionPlaceholderrecord componentrecursionDepth- the value for therecursionDepthrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contract
Returns the value of thecontractrecord component.- Returns:
- the value of the
contractrecord component
-
basePackage
Returns the value of thebasePackagerecord component.- Returns:
- the value of the
basePackagerecord component
-
generateDocs
public boolean generateDocs()Returns the value of thegenerateDocsrecord component.- Returns:
- the value of the
generateDocsrecord component
-
descriptionPlaceholder
Returns the value of thedescriptionPlaceholderrecord component.- Returns:
- the value of the
descriptionPlaceholderrecord component
-
recursionDepth
public int recursionDepth()Returns the value of therecursionDepthrecord component.- Returns:
- the value of the
recursionDepthrecord component
-