- All Known Subinterfaces:
Ceasable.CeaseAutomaton,Ceasable.UncheckedCeasable
public interface Ceasable
This mixin might be implemented by a component in order to provide cease
facilities. Cease is the zombie between stop and destroy. A processed
sequence may be ceased instead of being stopped. Taken an animation; an
animation sequence is stopped so it stands still ("freezes") to be resumed
again (e.g. via a "start()" method). It may also get ceased instead of being
stopped, in that case it may get faded out or (if it is a sprite) it may
explode - so to gracefully finish off that animation sequence.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheCeasable.CeaseAutomatoninterface defines those methods related to the cease life-cycle.static interfaceCeasable.CeaseBuilder<B extends Ceasable.CeaseBuilder<B>>To enable theCeasablefunctionality to be invoked in a builder chain.static interfaceSeeCeasablewithout any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoidcease()Ceases the component.default voidCeases the component by callingcease()without you to require catching anCeaseException.
-
Method Details
-
cease
Ceases the component.- Throws:
CeaseException- in case ceasing fails.
-
ceaseUnchecked
default void ceaseUnchecked()Ceases the component by callingcease()without you to require catching anCeaseException.- Throws:
CeaseException.CeaseRuntimeException- encapsulates the aCause and is thrown upon encountering aCeaseExceptionexception
-