Record Class LineDiff.Counts
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.LineDiff.Counts
- Record Components:
added- number of'+'linesremoved- number of'-'lines
- Enclosing class:
LineDiff
Added/removed line counts.
-
Constructor Summary
ConstructorsConstructorDescriptionCounts(int added, int removed) Creates an instance of aCountsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintadded()Returns the value of theaddedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intremoved()Returns the value of theremovedrecord component.Compact"+N/-M"summary suitable for one-line output.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Counts
-
-
Method Details
-
shortForm
Compact"+N/-M"summary suitable for one-line output.- Returns:
- the summary string
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
added
-
removed
-