Record Class ApplyBinPatches.Result
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.task.patch.ApplyBinPatches.Result
- Enclosing class:
ApplyBinPatches
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int patched, int added, int removed) Creates an instance of aResultrecord 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.intpatched()Returns the value of thepatchedrecord component.intremoved()Returns the value of theremovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(int patched, int added, int removed) Creates an instance of aResultrecord class.- Parameters:
patched- the value for thepatchedrecord componentadded- the value for theaddedrecord componentremoved- the value for theremovedrecord component
-
-
Method Details
-
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. -
patched
public int patched()Returns the value of thepatchedrecord component.- Returns:
- the value of the
patchedrecord component
-
added
public int added()Returns the value of theaddedrecord component.- Returns:
- the value of the
addedrecord component
-
removed
public int removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-