Package app.ductape.sdk.sessions
Record Class SessionsTypes.SessionInfo
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsTypes.SessionInfo
- Enclosing class:
- SessionsTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.endAt()Returns the value of theendAtrecord 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 thesessionIdrecord component.Returns the value of thesessionTagrecord component.startAt()Returns the value of thestartAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionInfo
public SessionInfo(String sessionId, String identifier, String startAt, String endAt, String sessionTag, boolean active) Creates an instance of aSessionInforecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentidentifier- the value for theidentifierrecord componentstartAt- the value for thestartAtrecord componentendAt- the value for theendAtrecord componentsessionTag- the value for thesessionTagrecord componentactive- the value for theactiverecord 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 '=='. -
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
-
startAt
Returns the value of thestartAtrecord component.- Returns:
- the value of the
startAtrecord component
-
endAt
Returns the value of theendAtrecord component.- Returns:
- the value of the
endAtrecord component
-
sessionTag
Returns the value of thesessionTagrecord component.- Returns:
- the value of the
sessionTagrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-