@Deprecated public class ArgumentsProperties extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
ArgumentsProperties()
已过时。
构造一个ArgumentsProperties.
|
ArgumentsProperties(String[] args)
已过时。
构造一个ArgumentsProperties并解析参数数组中的参数.
|
ArgumentsProperties(String[] args,
String[] keyFlags)
已过时。
构造一个ArgumentsProperties
|
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
getKeys()
已过时。
获取经过解析的key列表.
|
List<String> |
getKeysWithFlag()
已过时。
获取原始输入的参数key列表.
|
String[] |
getRawArguments()
已过时。
获取最后一次调用
load(String[])时提供的原始参数数组 |
String |
getValue(String key)
已过时。
获取指定参数的值.
|
void |
load(String argument)
已过时。
将参数加载进行处理
|
void |
load(String[] args)
已过时。
将参数数组加载进行处理.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic ArgumentsProperties()
public ArgumentsProperties(String[] args)
args - 参数列表, 比如从main(String[] args)方法参数中获得的参数.public void load(String argument)
argument - 参数文本public void load(String[] args)
args - 参数数组public String getValue(String key)
key - 要获取值的参数名public List<String> getKeysWithFlag()
getKeys()public String[] getRawArguments()
load(String[])时提供的原始参数数组Copyright © 2020. All rights reserved.