Record Class VersionChecker.UpdateState.Missing
java.lang.Object
java.lang.Record
com.xpdustry.claj.client.util.VersionChecker.UpdateState.Missing
- All Implemented Interfaces:
VersionChecker.UpdateState
- Enclosing interface:
VersionChecker.UpdateState
public static record VersionChecker.UpdateState.Missing(boolean repo, boolean version)
extends Record
implements VersionChecker.UpdateState
"version" or/and "repo" properties are missing in the mod/plugin definition.
-
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
ConstructorsConstructorDescriptionMissing(boolean repo, boolean version) Creates an instance of aMissingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrepo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.booleanversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Missing
public Missing(boolean repo, boolean version) Creates an instance of aMissingrecord class.- Parameters:
repo- the value for thereporecord componentversion- the value for theversionrecord 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 with thecomparemethod from their corresponding wrapper classes. -
repo
public boolean repo()Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-
version
public boolean version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-