Record Class UploadResult
java.lang.Object
java.lang.Record
com.mojang.realmsclient.gui.screens.UploadResult
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe 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.Returns the value of theerrorMessagerecord component.final 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
-
-
Constructor Details
-
UploadResult
-
-
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
-