public final class VariableValues extends Object
Modifier and Type | Method and Description |
---|---|
void |
add(String validityKeyword,
String[] value,
boolean replace)
Adds a new key and values to the variables.
|
void |
add(String validityKeyword,
String value,
boolean replace)
Adds a new key and value to the variables.
|
String |
get(String validityKeyword)
Returns the value for a given key
The method returns
null if the key does not exist. |
String[] |
getRow(String key)
Returns the values of a row with the specified key.
|
Iterator<String> |
keyIterator()
Returns an iterator over validity keywords.
|
boolean |
remove(String validityKeyword)
Removes a variable entry
The method returns
false if the validity keyword was not found. |
void |
removeAll()
Removes all entries from the Variable.
|
int |
size() |
public Iterator<String> keyIterator()
java.lang.String
public void add(String validityKeyword, String value, boolean replace)
replace
can be used to define if the value should
be replaced in case of an already existing validity keyword.validityKeyword
- Keyvalue
- Valuereplace
- If true the value will be replaced if a key with this name does already existpublic void add(String validityKeyword, String[] value, boolean replace)
replace
can be used to define if the values should
be replaced in case of an already existing validity keyword.validityKeyword
- Keyvalue
- Array of five elementsreplace
- If true the value will be replaced if a key with this name does already existpublic String get(String validityKeyword)
null
if the key does not exist.validityKeyword
- Keypublic String[] getRow(String key)
key
- Name of the keypublic boolean remove(String validityKeyword)
false
if the validity keyword was not found.validityKeyword
- Keypublic int size()
public void removeAll()
Copyright © 2021. All rights reserved.