Package net.minecraftforge.fml
Record Class VersionChecker.CheckResult
java.lang.Object
java.lang.Record
net.minecraftforge.fml.VersionChecker.CheckResult
- Enclosing class:
- VersionChecker
public static record VersionChecker.CheckResult(VersionChecker.Status status, org.apache.maven.artifact.versioning.ComparableVersion target, Map<org.apache.maven.artifact.versioning.ComparableVersion,String> changes, String url)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thechangesrecord component.private VersionChecker.StatusThe field for thestatusrecord component.private org.apache.maven.artifact.versioning.ComparableVersionThe field for thetargetrecord component.private StringThe field for theurlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCheckResult(VersionChecker.Status status, org.apache.maven.artifact.versioning.ComparableVersion target, Map<org.apache.maven.artifact.versioning.ComparableVersion,String> changes, String url)Creates an instance of aCheckResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Returns the value of thechangesrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.org.apache.maven.artifact.versioning.ComparableVersiontarget()Returns the value of thetargetrecord component.toString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
status
The field for thestatusrecord component. -
target
private final org.apache.maven.artifact.versioning.ComparableVersion targetThe field for thetargetrecord component. -
changes
The field for thechangesrecord component. -
url
The field for theurlrecord component.
-
-
Constructor Details
-
CheckResult
public CheckResult(VersionChecker.Status status, org.apache.maven.artifact.versioning.ComparableVersion target, Map<org.apache.maven.artifact.versioning.ComparableVersion,String> changes, String url)Creates an instance of aCheckResultrecord class.- Parameters:
status- the value for thestatusrecord componenttarget- the value for thetargetrecord componentchanges- the value for thechangesrecord componenturl- the value for theurlrecord 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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
target
public org.apache.maven.artifact.versioning.ComparableVersion target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-