Record Class VersionChecker.CheckResult
java.lang.Object
java.lang.Record
net.neoforged.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 final VersionChecker.StatusThe field for thestatusrecord component.private final org.apache.maven.artifact.versioning.ComparableVersionThe field for thetargetrecord component.private final 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.final booleanIndicates whether some other object is "equal to" this one.final 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.final StringtoString()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
-
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
-
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 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
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-