public class ParamList extends LinkedStringMap<String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ParamList()
Default constructor.
|
ParamList(ParamList src)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(String key)
Get Boolean value from list associated with \c key.
|
double |
getDoubleValue(String key)
Get Double value from list associated with \c key.
|
int |
getIntValue(String key)
Get Integer value from list associated with \c key.
|
String[] |
getParsed(String key,
char ch)
Get string associated with key and parse it to split according to delimiter.
|
String |
getStringValue(String key)
.
|
void |
setBooleanValue(String key,
boolean value)
Store Boolean value in List.
|
void |
setDoubleValue(String key,
double value)
Store Double value in List.
|
void |
setIntValue(String key,
int value)
Store Integer value in List.
|
void |
setStringValue(String key,
String value)
Store String value in List.
|
containsKey, get, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, remove, remove, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, remove, remove, size
public ParamList(ParamList src)
src
- Source to copypublic ParamList()
public void setIntValue(String key, int value)
key
- name of keyvalue
- to storepublic void setDoubleValue(String key, double value)
key
- name of keyvalue
- to storepublic void setStringValue(String key, String value)
key
- name of keyvalue
- to storepublic void setBooleanValue(String key, boolean value)
key
- name of keyvalue
- to storepublic int getIntValue(String key)
For safety it take double and then converts it to integer. It helps with dealing with type changing in QWindowBuilder. By default it keeps all in double and passed data returns in double as well
key
- name of keypublic double getDoubleValue(String key)
key
- name of keypublic String getStringValue(String key)
key
- name of keypublic boolean getBooleanValue(String key)
key
- name of keypublic String[] getParsed(String key, char ch)
May be used only when val under key can be parsed
key
- to be readch
- string delimiterStringParser
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.