Record Class VersionChecker.CheckResult
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.VersionChecker.CheckResult
- Record Components:
status- the check statustarget- the target version which was used to determine the check status, ornullif there is no targetchanges- the map of versions to changelog entries, for all versions between the current version and the target versionurl- thehomepageurl taken from the update checker data, which may benullif not present
- Enclosing class:
VersionChecker
public static record VersionChecker.CheckResult(VersionChecker.Status status, @Nullable org.apache.maven.artifact.versioning.ComparableVersion target, Map<org.apache.maven.artifact.versioning.ComparableVersion, String> changes, @Nullable String url)
extends Record
The version check result for a given mod. The mod which this check result belongs to is provided elsewhere.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thechangesrecord component.private final VersionChecker.StatusThe field for thestatusrecord component.private final @Nullable org.apache.maven.artifact.versioning.ComparableVersionThe field for thetargetrecord component.The field for theurlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCheckResult(VersionChecker.Status status, @Nullable org.apache.maven.artifact.versioning.ComparableVersion target, Map<org.apache.maven.artifact.versioning.ComparableVersion, String> changes, @Nullable 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.@Nullable 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
-
changes
-
url
-
-
Constructor Details
-
CheckResult
-
-
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
-
target
-
changes
-
url
-