public class VMOptions extends Object
Modifier and Type | Method and Description |
---|---|
void |
add(String optionName,
String optionValue)
Adds the specified option to the VM options map.
|
void |
addOptions(Map<String,String> options)
Adds the specified options map to the VM options map.
|
boolean |
contains(String optionName)
Checks whether the specified VM option exists.
|
String |
get(String optionName)
Retrieves the option value the given option name maps to.
|
static VMOptions |
getInstance() |
Iterator<String> |
optionNamesIterator()
Returns an iterator to iterate through the option names set of the VM options map.
|
Iterator<String> |
optionValuesIterator()
Returns an iterator to iterate through the option values set of the VM options map.
|
String |
remove(String optionName)
Removes the specified option and returns its value.
|
void |
reset()
Resets the VM options registry to its initial state.
|
public static VMOptions getInstance()
public void add(String optionName, String optionValue)
optionName
- Name of the optionoptionValue
- Value of the optionpublic void addOptions(Map<String,String> options)
options
- A VM options mappublic boolean contains(String optionName)
optionName
- The name of the option to be checkedpublic String get(String optionName)
optionName
- Name of the option to retrievepublic String remove(String optionName)
optionName
- Option to be removedpublic void reset()
public Iterator<String> optionNamesIterator()
Copyright © 2018 WSO2. All rights reserved.