StringOption, IntegerOption, BooleanOption, EnumerationOption, Option#string, Option#integer, Option#bool, Option#enumeration
| Modifier and Type | Field and Description |
|---|---|
| private final Enum | |
| protected final T | |
| private final String | |
| private final String | |
| private String | |
| private volatile boolean | |
| private final String | |
| private static Comparator | |
| private final T[] | |
| private final String | |
| private final String | |
| private boolean | |
| protected final Class | |
| private volatile T |
| Access | Constructor and Description |
|---|---|
| public | Option(String
the prefix used for loading this option from properties prefix, String the rest of the property name shortName, Class<T> the value type of the option type, Enum<E extends Enum<E>> the category to which this option belongs category, T[] a list of supported for the option, or null if the set is
not applicable options, T the default value for the option defval, String a description for the option description)Create a new option with the given values. |
| public | Option(String
the property name longName, Class<T> the value type of the option type, Enum<E extends Enum<E>> the category to which this option belongs category, T[] a list of supported for the option, or null if the set is
not applicable options, T the default value for the option defval, String a description for the option description)Create a new option with the given values. |
| Modifier and Type | Method and Description |
|---|---|
| public static Option | Returns: a new Boolean-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String a description for the option description)Create a new Boolean option with the given configuration. |
| public static Option | |
| public static Option | Returns: a new Boolean-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, Boolean the default value for the option defval, String a description for the option description)Create a new Boolean option with the given configuration. |
| public static Option | Returns: a new Boolean-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, Boolean the default value for the option defval, String a description for the option description)Create a new Boolean option with the given configuration. |
| public T | |
| public String | Returns: the long description of the property, as for documentation and configuration file templates.
|
| public String | Returns: the full display name of this option's propertyThe display name of the option's property, either the short name or the full name. |
| private static String | |
| public static < the type of the enum T extends Enum | Returns: a new Enumeration-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, Class<T> enumClass, String a description for the option description)Create a new Enumeration-based option with the given configuration. |
| public static < the type of the enum T extends Enum | |
| public static < the type of the enum T extends Enum | Returns: a new Enumeration-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, T the default value for the option defval, String a description for the option description)Create a new Enumeration-based option with the given configuration. |
| public static < the type of the enum T extends Enum | Returns: a new Enumeration-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, T the default value for the option defval, String a description for the option description)Create a new Enumeration-based option with the given configuration. |
| public synchronized void | |
| public static String | Returns: a formatted string representing the options as a config file or documentthe options to format options)Format the given options in a way suitable for use as a configuration file or documentation. |
| public static String | Returns: a formatted string representing the options as a config file or documentthe options to format options)Format the given options in a way suitable for use as a configuration file or documentation. |
| public static String | Returns: a formatted string representing the optionsthe options to format options)Format the given options to show their loaded values in the current JVM. |
| public static String | Returns: a formatted string representing the optionsthe options to format options)Format the given options to show their loaded values in the current JVM. |
| public static Option | Returns: a new Integer-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | Returns: a new Integer-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer[] a list of supported for the option, or null if the set is
not applicable options, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | |
| public static Option | Returns: a new Integer-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer[] a list of supported for the option, or null if the set is
not applicable options, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | Returns: a new Integer-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer the default value for the option defval, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | Returns: a new Integer-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer the default value for the option defval, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | Returns: a new Integer-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer[] a list of supported for the option, or null if the set is
not applicable options, Integer the default value for the option defval, String a description for the option description)Create a new Integer option with the given configuration. |
| public static Option | Returns: a new Integer-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, Integer[] a list of supported for the option, or null if the set is
not applicable options, Integer the default value for the option defval, String a description for the option description)Create a new Integer option with the given configuration. |
| public boolean | |
| public final T | |
| public synchronized String | Returns: the option's property's current value, or a value previously forced into this option byforce(String)Load the option's property, as if by calling java.lang.System#getProperty |
| public T[] | Returns: an array of accepted values, or null if any values are allowedThe array of accepted values for the option, or null if any values are accepted. |
| public String | |
| public String | |
| public final synchronized T | |
| protected abstract T | Returns: the updated value after reloadPerform the appropriate load and conversion for the option's property. |
| public String | |
| public static Option | Returns: a new String-based optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | |
| public static Option | Returns: a new String-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String the default value for the option defval, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | Returns: a new String-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, String the default value for the option defval, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | Returns: a new String-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String[] a list of supported for the option, or null if the set is
not applicable options, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | Returns: a new String-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, String[] a list of supported for the option, or null if the set is
not applicable options, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | Returns: a new String-based Optionthe prefix used for loading this option from properties prefix, String the rest of the property name shortName, Enum<E extends Enum<E>> the category to which this option belongs category, String[] a list of supported for the option, or null if the set is
not applicable options, String the default value for the option defval, String a description for the option description)Create a new String option with the given configuration. |
| public static Option | Returns: a new String-based Optionthe property name longName, Enum<E extends Enum<E>> the category to which this option belongs category, String[] a list of supported for the option, or null if the set is
not applicable options, String the default value for the option defval, String a description for the option description)Create a new String option with the given configuration. |
| public String | |
| public Class | |
| public synchronized void |