Package ch.rswk.meta.engine.test
Record Class UserServiceTest.LoginAndAuthReply
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.test.UserServiceTest.LoginAndAuthReply
- Enclosing class:
UserServiceTest
static record UserServiceTest.LoginAndAuthReply(@Nullable AuthReply authReply, LoginReply loginReply)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable AuthReply
The field for theauthReply
record component.private final LoginReply
The field for theloginReply
record component. -
Constructor Summary
ConstructorsConstructorDescriptionLoginAndAuthReply
(@Nullable AuthReply authReply, LoginReply loginReply) Creates an instance of aLoginAndAuthReply
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AuthReply
Returns the value of theauthReply
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theloginReply
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
authReply
The field for theauthReply
record component. -
loginReply
The field for theloginReply
record component.
-
-
Constructor Details
-
LoginAndAuthReply
LoginAndAuthReply(@Nullable AuthReply authReply, LoginReply loginReply) Creates an instance of aLoginAndAuthReply
record class.- Parameters:
authReply
- the value for theauthReply
record componentloginReply
- the value for theloginReply
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object)
. -
authReply
Returns the value of theauthReply
record component.- Returns:
- the value of the
authReply
record component
-
loginReply
Returns the value of theloginReply
record component.- Returns:
- the value of the
loginReply
record component
-