| Modifier | Constructor and Description |
|---|---|
protected |
Option(String name,
V defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Option<T> |
create(String name)
Creates an option with the given name and
null default value. |
static <T> Option<T> |
create(String name,
T defaultValue)
Creates an option with the given name and default value.
|
boolean |
equals(Object other) |
V |
getDefaultValue()
Returns the default value for this option.
|
int |
hashCode() |
void |
setDefaultValue(V defaultValue)
Sets the default value for this option.
|
String |
toString() |
public static <T> Option<T> create(String name)
null default value.public static <T> Option<T> create(String name, T defaultValue)
public V getDefaultValue()
public void setDefaultValue(V defaultValue)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.