com.github.croesch.micro_debug.gui.settings
Enum BooleanSettings

java.lang.Object
  extended by java.lang.Enum<BooleanSettings>
      extended by com.github.croesch.micro_debug.gui.settings.BooleanSettings
All Implemented Interfaces:
Serializable, Comparable<BooleanSettings>

public enum BooleanSettings
extends Enum<BooleanSettings>

Provides some boolean settings, that may be modified by the user.

Since:
Date: Jun 2, 2012
Author:
croesch

Enum Constant Summary
UPDATE_AFTER_EACH_TICK
          setting if the view should be updated after each tick
 
Method Summary
 boolean value()
          Returns the value of this setting.
static BooleanSettings valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BooleanSettings[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UPDATE_AFTER_EACH_TICK

public static final BooleanSettings UPDATE_AFTER_EACH_TICK
setting if the view should be updated after each tick

Method Detail

values

public static BooleanSettings[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BooleanSettings c : BooleanSettings.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BooleanSettings valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

@Nullable
public boolean value()
Returns the value of this setting.

Returns:
the value of this setting, created from the value in the properties file.
Since:
Date: Jun 2, 2012


Copyright © 2012. All Rights Reserved.