Record Class SettingUserIdResult
java.lang.Object
java.lang.Record
com.iohao.net.framework.protocol.SettingUserIdResult
- Record Components:
errorCode- errorCodeerrorMessage- If success is true, the exception is null.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SettingUserIdResultstatic final SettingUserIdResult -
Constructor Summary
ConstructorsConstructorDescriptionSettingUserIdResult(int errorCode, String errorMessage) Creates an instance of aSettingUserIdResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCoderecord component.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.static SettingUserIdResultofError(ErrorInformation errorInformation) static SettingUserIdResultbooleansuccess()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SUCCESS
-
ERROR
-
-
Constructor Details
-
SettingUserIdResult
Creates an instance of aSettingUserIdResultrecord class.- Parameters:
errorCode- the value for theerrorCoderecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
success
public boolean success() -
ofError
-
ofError
-
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. -
errorCode
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-