T
- type of key value.public class KeyValueFactory<T> extends Object
Modifier and Type | Field and Description |
---|---|
static KeyValueFactory<Boolean> |
BOOLEAN
Default instance for ...
|
static KeyValueFactory<Boolean> |
BOOLEAN_TRUE
Default instance for ...
|
static KeyValueFactory<Double> |
DOUBLE
Default instance for ...
|
static KeyValueFactory<Double> |
DOUBLE_ONE
Default instance for ...
|
static KeyValueFactory<Float> |
FLOAT
Default instance for ...
|
static KeyValueFactory<Float> |
FLOAT_ONE
Default instance for ...
|
static KeyValueFactory<Integer> |
INTEGER
Default instance for ...
|
static KeyValueFactory<Integer> |
INTEGER_ONE
Default instance for ...
|
static KeyValueFactory<Long> |
LONG
Default instance for ...
|
static KeyValueFactory<Long> |
LONG_ONE
Default instance for ...
|
static KeyValueFactory<String> |
STRING
Default instance for ...
|
Constructor and Description |
---|
KeyValueFactory(T defaultValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KeyValue<T> |
create(String key) |
List<KeyValue<T>> |
createAll(String... keys) |
T |
getDefaultValue() |
String |
toString() |
public static final KeyValueFactory<String> STRING
public static final KeyValueFactory<Integer> INTEGER
public static final KeyValueFactory<Integer> INTEGER_ONE
public static final KeyValueFactory<Boolean> BOOLEAN
public static final KeyValueFactory<Boolean> BOOLEAN_TRUE
public static final KeyValueFactory<Float> FLOAT
public static final KeyValueFactory<Float> FLOAT_ONE
public static final KeyValueFactory<Double> DOUBLE
public static final KeyValueFactory<Double> DOUBLE_ONE
public static final KeyValueFactory<Long> LONG
public static final KeyValueFactory<Long> LONG_ONE
public KeyValueFactory(T defaultValue)
defaultValue
- default value to set.public T getDefaultValue()
public KeyValue<T> create(String key) throws IllegalArgumentException
key
- key to set.IllegalArgumentException
- if key is blank.public List<KeyValue<T>> createAll(String... keys) throws IllegalArgumentException
keys
- keys to use.IllegalArgumentException
- if one key is blank.public String toString()
toString
in class Object
Object.toString()
Copyright © 2018 Hitachi Vantara. All rights reserved.