Package io.github.jbastgen.stemma.app.io
Record Class ExternalMergeTool.Files4
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.io.ExternalMergeTool.Files4
- Enclosing class:
ExternalMergeTool
public static record ExternalMergeTool.Files4(Path base, Path local, Path remote, Path merged)
extends Record
The files a tool is given.
base may be missing (added on both sides) and is then an empty file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.local()Returns the value of thelocalrecord component.merged()Returns the value of themergedrecord component.remote()Returns the value of theremoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Files4
Creates an instance of aFiles4record class.- Parameters:
base- the value for thebaserecord componentlocal- the value for thelocalrecord componentremote- the value for theremoterecord componentmerged- the value for themergedrecord 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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
local
Returns the value of thelocalrecord component.- Returns:
- the value of the
localrecord component
-
remote
Returns the value of theremoterecord component.- Returns:
- the value of the
remoterecord component
-
merged
Returns the value of themergedrecord component.- Returns:
- the value of the
mergedrecord component
-