Package app.ductape.sdk.sessions
Record Class SessionsResolver.SessionData
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsResolver.SessionData
- Enclosing class:
- SessionsResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Returns the value of thesessionIdrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionData
public SessionData(String tag, String sessionId, String identifier, Map<String, Object> data, Long expiresAt, String env) Creates an instance of aSessionDatarecord class.- Parameters:
tag- the value for thetagrecord componentsessionId- the value for thesessionIdrecord componentidentifier- the value for theidentifierrecord componentdata- the value for thedatarecord componentexpiresAt- the value for theexpiresAtrecord componentenv- the value for theenvrecord 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). -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-