Record Class VersionChecker.UpdateState.Error
java.lang.Object
java.lang.Record
com.xpdustry.claj.client.util.VersionChecker.UpdateState.Error
- All Implemented Interfaces:
VersionChecker.UpdateState
- Enclosing interface:
VersionChecker.UpdateState
public static record VersionChecker.UpdateState.Error(Throwable error, boolean noContent, boolean invalidJson)
extends Record
implements VersionChecker.UpdateState
An error occurred while checking for updates or no content received.
-
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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinvalidJsonrecord component.booleanReturns the value of thenoContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Error
Creates an instance of aErrorrecord class.- Parameters:
error- the value for theerrorrecord componentnoContent- the value for thenoContentrecord componentinvalidJson- the value for theinvalidJsonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
noContent
public boolean noContent()Returns the value of thenoContentrecord component.- Returns:
- the value of the
noContentrecord component
-
invalidJson
public boolean invalidJson()Returns the value of theinvalidJsonrecord component.- Returns:
- the value of the
invalidJsonrecord component
-