Record Class MudlibProjection
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.engine.mudlib.MudlibProjection
public record MudlibProjection(String sourcePath, Object object, Set<MudlibProjectionRole> roles)
extends Record
Opaque mudlib-side projection attached to JVMud-native Player or Persona records.
This records the adapter meaning of a mudlib object without making that object define JVMud's
engine ontology. LP245's /obj/player.c, for example, is a combined projection that carries
login/profile policy and Persona behavior in one LPC object.
-
Constructor Summary
ConstructorsConstructorDescriptionMudlibProjection(String sourcePath, Object object, Set<MudlibProjectionRole> roles) Creates an instance of aMudlibProjectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MudlibProjectioncombinedPlayerPersona(String sourcePath, Object object) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasRole(MudlibProjectionRole role) object()Returns the value of theobjectrecord component.static MudlibProjectionpersonaBehavior(String sourcePath, Object object) roles()Returns the value of therolesrecord component.Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MudlibProjection
Creates an instance of aMudlibProjectionrecord class.- Parameters:
sourcePath- the value for thesourcePathrecord componentobject- the value for theobjectrecord componentroles- the value for therolesrecord component
-
-
Method Details
-
combinedPlayerPersona
-
personaBehavior
-
hasRole
-
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). -
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-