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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionCheckResult(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 SummaryModifier 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- 
statusThe field for thestatusrecord component.
- 
targetprivate final org.apache.maven.artifact.versioning.ComparableVersion targetThe field for thetargetrecord component.
- 
changesThe field for thechangesrecord component.
- 
urlThe field for theurlrecord component.
 
- 
- 
Constructor Details- 
CheckResultpublic 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 the- statusrecord component
- target- the value for the- targetrecord component
- changes- the value for the- changesrecord component
- url- the value for the- urlrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
statusReturns the value of thestatusrecord component.- Returns:
- the value of the statusrecord component
 
- 
targetpublic org.apache.maven.artifact.versioning.ComparableVersion target()Returns the value of thetargetrecord component.- Returns:
- the value of the targetrecord component
 
- 
changesReturns the value of thechangesrecord component.- Returns:
- the value of the changesrecord component
 
- 
urlReturns the value of theurlrecord component.- Returns:
- the value of the urlrecord component
 
 
-