package com.wkovacs64.mtorch.core;

/**
 * A generic torch object that can be toggled on or off.
 */
public interface Torch {
    /**
     * Initializes the torch device.
     *
     * @throws IllegalStateException if the torch could not be initialized
     */
    void init() throws IllegalStateException;
    /**
     * Toggles the torch state.
     *
     * @param enabled true to turn the torch on, false to turn it off
     * @throws IllegalStateException if the torch could not be toggled
     */
    void toggle(boolean enabled) throws IllegalStateException;
    /**
     * Reports the current illumination status of the torch.
     *
     * @return true if the torch is on, false if it's off
     */
    boolean isOn();
    /**
     * Releases or tears down any necessary torch components or dependencies.
     */
    void tearDown();
}

@@ -292,32 +292,33 @@
 StateException;%0A
+%0A
     /**%0A     * T
@@ -560,16 +560,17 @@
 eption;%0A
+%0A
     /**%0A
@@ -723,16 +723,17 @@
 isOn();%0A
+%0A
     /**%0A

Fix some minor formatting