Record Class UploadResult
java.lang.Object
java.lang.Record
com.mojang.realmsclient.gui.screens.UploadResult
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable StringThe field for theerrorMessagerecord component.private final intThe field for thestatusCoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUploadResult(int statusCode, @Nullable String errorMessage) Creates an instance of aUploadResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of theerrorMessagerecord component.@Nullable Stringfinal inthashCode()Returns a hash code value for this object.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
statusCode
private final int statusCodeThe field for thestatusCoderecord component. -
errorMessage
The field for theerrorMessagerecord component.
-
-
Constructor Details
-
UploadResult
Creates an instance of aUploadResultrecord class.- Parameters:
statusCode- the value for thestatusCoderecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
getSimplifiedErrorMessage
-
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. -
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-