Record Class Diff3.Conflict
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.git.Diff3.Conflict
- All Implemented Interfaces:
Diff3.Chunk
- Enclosing class:
Diff3
public static record Diff3.Conflict(List<String> base, List<String> ours, List<String> theirs)
extends Record
implements Diff3.Chunk
Both sides changed the same lines in different ways.
-
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.ours()Returns the value of theoursrecord component.theirs()Returns the value of thetheirsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Conflict
Creates an instance of aConflictrecord class.- Parameters:
base- the value for thebaserecord componentours- the value for theoursrecord componenttheirs- the value for thetheirsrecord 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
-
ours
Returns the value of theoursrecord component.- Returns:
- the value of the
oursrecord component
-
theirs
Returns the value of thetheirsrecord component.- Returns:
- the value of the
theirsrecord component
-