Package ch.rswk.meta.engine.rs
Record Class EngineResources.VerifyTokenResult
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.rs.EngineResources.VerifyTokenResult
- Enclosing interface:
EngineResources
public static record EngineResources.VerifyTokenResult(@Nullable jakarta.ws.rs.core.Response errorResponse, UserService.VerifyTokenReply tokenResponse)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable jakarta.ws.rs.core.Response
The field for theerrorResponse
record component.private final UserService.VerifyTokenReply
The field for thetokenResponse
record component. -
Constructor Summary
ConstructorsConstructorDescriptionVerifyTokenResult
(@Nullable jakarta.ws.rs.core.Response errorResponse, UserService.VerifyTokenReply tokenResponse) Creates an instance of aVerifyTokenResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@Nullable jakarta.ws.rs.core.Response
Returns the value of theerrorResponse
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetokenResponse
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
errorResponse
private final @Nullable jakarta.ws.rs.core.Response errorResponseThe field for theerrorResponse
record component. -
tokenResponse
The field for thetokenResponse
record component.
-
-
Constructor Details
-
VerifyTokenResult
public VerifyTokenResult(@Nullable jakarta.ws.rs.core.Response errorResponse, UserService.VerifyTokenReply tokenResponse) Creates an instance of aVerifyTokenResult
record class.- Parameters:
errorResponse
- the value for theerrorResponse
record componenttokenResponse
- the value for thetokenResponse
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
errorResponse
public @Nullable jakarta.ws.rs.core.Response errorResponse()Returns the value of theerrorResponse
record component.- Returns:
- the value of the
errorResponse
record component
-
tokenResponse
Returns the value of thetokenResponse
record component.- Returns:
- the value of the
tokenResponse
record component
-