|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.util.KeyValueFactory<T>
T
- type of key value.public class KeyValueFactory<T>
Field Summary | |
---|---|
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 Summary | |
---|---|
KeyValueFactory(T defaultValue)
Constructor. |
Method Summary | |
---|---|
KeyValue<T> |
create(String key)
|
List<KeyValue<T>> |
createAll(String... keys)
|
T |
getDefaultValue()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public KeyValueFactory(T defaultValue)
defaultValue
- default value to set.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |