|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
gate.util.OptionsMap
public class OptionsMap
A map that stores values as strings and provides support for converting some frequently used types to and from string
| Constructor Summary | |
|---|---|
OptionsMap()
|
|
| Method Summary | |
|---|---|
Boolean |
getBoolean(Object key)
If the object stored under key is a Boolean then returns its value otherwise returns null; |
Font |
getFont(Object key)
If the object stored under key is a String then returns its value otherwise returns null; |
Integer |
getInt(Object key)
If the object stored under key is an Integer then returns its value otherwise returns null; |
String |
getString(Object key)
If the object stored under key is a String then returns its value otherwise returns null; |
Object |
put(Object key,
Object value)
Converts the value to string using its toString() method and then stores it |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public OptionsMap()
| Method Detail |
|---|
public Object put(Object key,
Object value)
put in interface Mapput in class HashMappublic Integer getInt(Object key)
public Boolean getBoolean(Object key)
public String getString(Object key)
public Font getFont(Object key)
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||