Package com.tnsai.coordination.resources
Record Class SessionManager.Session
java.lang.Object
java.lang.Record
com.tnsai.coordination.resources.SessionManager.Session
- Record Components:
id- unique session IDgroupId- the group this session belongs tostartedAt- when the session startedendedAt- when the session ended (null if still active)metadata- additional session metadatastate- the current session state
- Enclosing class:
SessionManager
public static record SessionManager.Session(String id, String groupId, Instant startedAt, Instant endedAt, Map<String,Object> metadata, SessionManager.SessionState state)
extends Record
A work session for a group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendedAt()Returns the value of theendedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
endedAt
Returns the value of theendedAtrecord component.- Returns:
- the value of the
endedAtrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-