Package app.ductape.sdk.sessions
Record Class SessionsHelper.SessionVerificationResult
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsHelper.SessionVerificationResult
- Enclosing class:
- SessionsHelper
public static record SessionsHelper.SessionVerificationResult(boolean valid, SessionsResolver.SessionData sessionData, SessionsResolver.SessionContext context, String error)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSessionVerificationResult(boolean valid, SessionsResolver.SessionData sessionData, SessionsResolver.SessionContext context, String error) Creates an instance of aSessionVerificationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionDatarecord component.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
SessionVerificationResult
public SessionVerificationResult(boolean valid, SessionsResolver.SessionData sessionData, SessionsResolver.SessionContext context, String error) Creates an instance of aSessionVerificationResultrecord class.- Parameters:
valid- the value for thevalidrecord componentsessionData- the value for thesessionDatarecord componentcontext- the value for thecontextrecord componenterror- the value for theerrorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-
sessionData
Returns the value of thesessionDatarecord component.- Returns:
- the value of the
sessionDatarecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-