| Package | Description |
|---|---|
| org.apache.any23.configuration |
This packages contains the Any23 Configuration definition.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Setting<?>> |
Setting.as(S setting) |
<S extends Setting<?>> |
Settings.find(S setting)
Returns the setting with the same setting key as the supplied setting, if present.
|
| Modifier and Type | Method and Description |
|---|---|
static Setting<Boolean> |
Setting.create(String identifier,
Boolean defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
static <V> Setting<V> |
Setting.create(String identifier,
Class<V> valueType,
V defaultValue)
Convenience method to create a new setting with the specified identifier,
value type, and default value.
|
static Setting<Double> |
Setting.create(String identifier,
Double defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
static Setting<Float> |
Setting.create(String identifier,
Float defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
static Setting<Integer> |
Setting.create(String identifier,
Integer defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
static Setting<Long> |
Setting.create(String identifier,
Long defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
static Setting<String> |
Setting.create(String identifier,
String defaultValue)
Convenience method to create a new setting with the specified identifier and default value.
|
Setting<V> |
Setting.withValue(V newValue) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Setting<?>> |
Settings.find(String identifier) |
Iterator<Setting<?>> |
Settings.iterator() |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
Settings.get(Setting<E> defaultSetting)
Returns the value set for
defaultSetting's key, if present. |
static Settings |
Settings.of(Setting<?>... settings)
Returns a
Settings object containing the supplied settings. |
static Settings |
Settings.of(Setting<?> s)
Returns a singleton
Settings object, containing only the supplied setting. |
| Modifier and Type | Method and Description |
|---|---|
static Settings |
Settings.of(Collection<? extends Setting<?>> c)
Returns a
Settings object containing the supplied settings. |
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.