public class Option extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_LT_ONE |
static int |
FLAG_LTE_ONE |
static int |
FLAG_NON_NEGATIVE |
static int |
FLAG_POSITIVE |
Constructor and Description |
---|
Option(String name,
boolean defaultValue,
String description) |
Option(String name,
double defaultValue,
String description) |
Option(String name,
double defaultValue,
String description,
int flags) |
Option(String name,
float defaultValue,
String description) |
Option(String name,
float defaultValue,
String description,
int flags) |
Option(String name,
int defaultValue,
String description) |
Option(String name,
int defaultValue,
String description,
int flags) |
Option(String name,
long defaultValue,
String description) |
Option(String name,
long defaultValue,
String description,
int flags) |
Option(String name,
Object defaultValue,
Class<?> type,
String description,
int flags) |
Option(String name,
String defaultValue,
String description) |
Modifier and Type | Method and Description |
---|---|
Object |
defaultValue() |
String |
description() |
int |
flags() |
Object |
get()
Fetch the Option's configuration value from the Config class.
|
boolean |
getBoolean() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
Object |
getNewObject() |
String |
getString() |
Object |
getUnlogged() |
String |
name() |
void |
set(Object value)
Set the value (in the Config) for this Option.
|
org.json.JSONObject |
toJSON() |
String |
toString() |
public static final int FLAG_NON_NEGATIVE
public static final int FLAG_POSITIVE
public static final int FLAG_LT_ONE
public static final int FLAG_LTE_ONE
public String name()
public Object defaultValue()
public String description()
public int flags()
public void set(Object value)
public Object get()
public Object getUnlogged()
public boolean getBoolean()
public String getString()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public Object getNewObject()
public org.json.JSONObject toJSON()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.