Record Class EndReloadEvent
java.lang.Object
java.lang.Record
net.flectone.pulse.model.event.lifecycle.EndReloadEvent
- All Implemented Interfaces:
Event
public record EndReloadEvent(boolean cancelled, FlectonePulse flectonePulse, @Nullable ReloadException reloadException)
extends Record
implements Event
-
Nested Class Summary
Nested classes/interfaces inherited from interface Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionEndReloadEvent(boolean cancelled, FlectonePulse flectonePulse, @Nullable ReloadException reloadException) Creates an instance of aEndReloadEventrecord class.EndReloadEvent(FlectonePulse flectonePulse, ReloadException reloadException) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflectonePulserecord component.final inthashCode()Returns a hash code value for this object.boolean@Nullable ReloadExceptionReturns the value of thereloadExceptionrecord component.final StringtoString()Returns a string representation of this record class.withCancelled(boolean cancelled) withFlectonePulse(FlectonePulse flectonePulse) withReloadException(@Nullable ReloadException reloadException)
-
Constructor Details
-
EndReloadEvent
-
EndReloadEvent
public EndReloadEvent(boolean cancelled, FlectonePulse flectonePulse, @Nullable ReloadException reloadException) Creates an instance of aEndReloadEventrecord class.- Parameters:
cancelled- the value for thecancelledrecord componentflectonePulse- the value for theflectonePulserecord componentreloadException- the value for thereloadExceptionrecord component
-
-
Method Details
-
isSuccessful
public boolean isSuccessful() -
withCancelled
- Specified by:
withCancelledin interfaceEvent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFlectonePulse
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReloadException
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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. -
cancelled
-
flectonePulse
Returns the value of theflectonePulserecord component.- Returns:
- the value of the
flectonePulserecord component
-
reloadException
Returns the value of thereloadExceptionrecord component.- Returns:
- the value of the
reloadExceptionrecord component
-