Class VoidTrigger

java.lang.Object
fr.r1r0r0.deltaengine.model.events.VoidTrigger
All Implemented Interfaces:
Trigger

public class VoidTrigger
extends java.lang.Object
implements Trigger
A void event, that triggers nothing and checks nothing. Used to avoid a null attribute.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static VoidTrigger INSTANCE
    Instance of this class, because it is impossible (and useless) to create a new one each time
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private VoidTrigger()
    Cannot be instanced
  • Method Summary

    Modifier and Type Method Description
    static VoidTrigger getInstance()
    Instance of this class, because it is impossible (and useless) to create a new one each time
    void trigger()
    Method to execute trigger behaviour

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final VoidTrigger INSTANCE
      Instance of this class, because it is impossible (and useless) to create a new one each time
  • Constructor Details

    • VoidTrigger

      private VoidTrigger()
      Cannot be instanced
  • Method Details

    • trigger

      public void trigger()
      Description copied from interface: Trigger
      Method to execute trigger behaviour
      Specified by:
      trigger in interface Trigger
    • getInstance

      public static VoidTrigger getInstance()
      Instance of this class, because it is impossible (and useless) to create a new one each time
      Returns:
      VoidTrigger instance