Record Class BackendSettings
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.config.BackendSettings
- Record Components:
mode- built-in JGit or system gitgitPath- forBackendMode.SYSTEM_GIT: the git installation directory or executable chosen by the user, ornullto use the best installation that is detected automatically
The user's choice of Git backend.
-
Constructor Summary
ConstructorsConstructorDescriptionBackendSettings(BackendMode mode, Path gitPath) Creates an instance of aBackendSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe path of the git installation to use, if one was chosen.static BackendSettingsdefaults()The built-in Git, no path.final booleanIndicates whether some other object is "equal to" this one.gitPath()Returns the value of thegitPathrecord component.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
defaults
The built-in Git, no path. -
configuredGitPath
The path of the git installation to use, if one was chosen. -
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). -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
gitPath
Returns the value of thegitPathrecord component.- Returns:
- the value of the
gitPathrecord component
-