Record Class VersionChecker.UpdateState.Outdated
java.lang.Object
java.lang.Record
com.xpdustry.claj.client.util.VersionChecker.UpdateState.Outdated
- All Implemented Interfaces:
VersionChecker.UpdateState
- Enclosing interface:
VersionChecker.UpdateState
public static record VersionChecker.UpdateState.Outdated(String currentVersion, String foundVersion, String downloadLink)
extends Record
implements VersionChecker.UpdateState
An update was found, the mod/plugin needs to be upgraded.
downloadLink will be the first asset file ending with .jar, or null if none is found.-
Nested Class Summary
Nested classes/interfaces inherited from interface VersionChecker.UpdateState
VersionChecker.UpdateState.Error, VersionChecker.UpdateState.Missing, VersionChecker.UpdateState.Outdated, VersionChecker.UpdateState.UpToDate -
Field Summary
Fields inherited from interface VersionChecker.UpdateState
errorInvalidJson, errorNoContent, missingRepo, missingVersion, upToDate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentVersionrecord component.Returns the value of thedownloadLinkrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoundVersionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outdated
Creates an instance of aOutdatedrecord class.- Parameters:
currentVersion- the value for thecurrentVersionrecord componentfoundVersion- the value for thefoundVersionrecord componentdownloadLink- the value for thedownloadLinkrecord 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). -
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-
foundVersion
Returns the value of thefoundVersionrecord component.- Returns:
- the value of the
foundVersionrecord component
-
downloadLink
Returns the value of thedownloadLinkrecord component.- Returns:
- the value of the
downloadLinkrecord component
-