Package app.ductape.sdk.sessions
Record Class SessionsResolver.SessionContext
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsResolver.SessionContext
- Enclosing class:
- SessionsResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Returns the value of thesession_idrecord component.Returns the value of thesession_tagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionContext
public SessionContext(String identifier, String session_id, String session_tag, Map<String, Object> data) Creates an instance of aSessionContextrecord class.- Parameters:
identifier- the value for theidentifierrecord componentsession_id- the value for thesession_idrecord componentsession_tag- the value for thesession_tagrecord componentdata- the value for thedatarecord 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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
session_id
Returns the value of thesession_idrecord component.- Returns:
- the value of the
session_idrecord component
-
session_tag
Returns the value of thesession_tagrecord component.- Returns:
- the value of the
session_tagrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-