Record Class PlayerRecord
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.engine.identity.PlayerRecord
public record PlayerRecord(PlayerId id, Set<SessionId> activeSessionIds, Optional<PersonaId> activePersonaId, Optional<Object> mudlibProfileProjection)
extends Record
Engine-owned record for the human or account-like controller.
The mudlib profile projection is opaque to the runtime model. Compatibility layers may use it to associate mudlib-authored profile state without making that state part of the engine ontology.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerRecord(PlayerId id) PlayerRecord(PlayerId id, Set<SessionId> activeSessionIds, Optional<PersonaId> activePersonaId, Optional<Object> mudlibProfileProjection) Creates an instance of aPlayerRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivePersonaIdrecord component.Returns the value of theactiveSessionIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themudlibProfileProjectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerRecord
public PlayerRecord(PlayerId id, Set<SessionId> activeSessionIds, Optional<PersonaId> activePersonaId, Optional<Object> mudlibProfileProjection) Creates an instance of aPlayerRecordrecord class.- Parameters:
id- the value for theidrecord componentactiveSessionIds- the value for theactiveSessionIdsrecord componentactivePersonaId- the value for theactivePersonaIdrecord componentmudlibProfileProjection- the value for themudlibProfileProjectionrecord component
-
PlayerRecord
-
-
Method Details
-
toString
-
hashCode
-
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
-
activeSessionIds
-
activePersonaId
-
mudlibProfileProjection
-