Package net.mcreator.gradle
Record Class GradleTaskResult
java.lang.Object
java.lang.Record
net.mcreator.gradle.GradleTaskResult
-
Constructor Summary
ConstructorDescriptionGradleTaskResult
(String taskContents, int statusByMCreator) Creates an instance of aGradleTaskResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thestatusByMCreator
record component.Returns the value of thetaskContents
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GradleTaskResult
Creates an instance of aGradleTaskResult
record class.- Parameters:
taskContents
- the value for thetaskContents
record componentstatusByMCreator
- the value for thestatusByMCreator
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
taskContents
Returns the value of thetaskContents
record component.- Returns:
- the value of the
taskContents
record component
-
statusByMCreator
public int statusByMCreator()Returns the value of thestatusByMCreator
record component.- Returns:
- the value of the
statusByMCreator
record component
-