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
Modifier and TypeFieldDescriptionThe field for thechanges
record component.private final VersionChecker.Status
The field for thestatus
record component.private final org.apache.maven.artifact.versioning.ComparableVersion
The field for thetarget
record component.private final String
The field for theurl
record component. -
Constructor Summary
ConstructorDescriptionCheckResult
(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 aCheckResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()
Returns the value of thechanges
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.status()
Returns the value of thestatus
record component.org.apache.maven.artifact.versioning.ComparableVersion
target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Field Details
-
status
The field for thestatus
record component. -
target
private final org.apache.maven.artifact.versioning.ComparableVersion targetThe field for thetarget
record component. -
changes
The field for thechanges
record component. -
url
The field for theurl
record 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 aCheckResult
record class.- Parameters:
status
- the value for thestatus
record componenttarget
- the value for thetarget
record componentchanges
- the value for thechanges
record componenturl
- the value for theurl
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
target
public org.apache.maven.artifact.versioning.ComparableVersion target()Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
changes
Returns the value of thechanges
record component.- Returns:
- the value of the
changes
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-