Record Class PerceptionEvent
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.execution.model.world.PerceptionEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.content()Returns the value of thecontentrecord component.booleandirected()Returns the value of thedirectedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.location()Returns the value of thelocationrecord component.source()Returns the value of thesourcerecord component.text()Returns the value of thetextrecord component.A fresh mapping for each LPC observer; absent references use LPC zero.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PerceptionEvent
public PerceptionEvent(Object actor, Object source, Object location, String kind, Object content, String text, boolean directed) Creates an instance of aPerceptionEventrecord class.- Parameters:
actor- the value for theactorrecord componentsource- the value for thesourcerecord componentlocation- the value for thelocationrecord componentkind- the value for thekindrecord componentcontent- the value for thecontentrecord componenttext- the value for thetextrecord componentdirected- the value for thedirectedrecord component
-
-
Method Details
-
toMapping
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
directed
public boolean directed()Returns the value of thedirectedrecord component.- Returns:
- the value of the
directedrecord component
-