Record Class EventLogicCopyService.CopiedEvent
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.actions.logiccopy.EventLogicCopyService.CopiedEvent
- Enclosing class:
EventLogicCopyService
public static record EventLogicCopyService.CopiedEvent(Entity originalEvent, Entity newEvent, EventLogicCopyService.EventData data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedEvent(Entity originalEvent, Entity newEvent, EventLogicCopyService.EventData data) Creates an instance of aCopiedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newEvent()Returns the value of thenewEventrecord component.Returns the value of theoriginalEventrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopiedEvent
Creates an instance of aCopiedEventrecord class.- Parameters:
originalEvent- the value for theoriginalEventrecord componentnewEvent- the value for thenewEventrecord componentdata- the value for thedatarecord component
-
-
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). -
originalEvent
Returns the value of theoriginalEventrecord component.- Returns:
- the value of the
originalEventrecord component
-
newEvent
Returns the value of thenewEventrecord component.- Returns:
- the value of the
newEventrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-