public abstract class StrLookup<V> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
StrLookup() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
lookup(String key)
查找字符串值的字符串键
|
static <V> StrLookup<V> |
mapLookup(Map<String,V> map)
返回使用映射查找值的查找
如果映射为null,那么每次查找都会返回null
使用toString()将映射结果对象转换为字符串
|
static StrLookup<String> |
systemPropertiesLookup()
返回一个新的查找,该查找使用当前的副本
如果安全管理器阻塞了对系统属性的访问,
则null将阻塞每次查找都返回
|
public static StrLookup<String> systemPropertiesLookup()
public static <V> StrLookup<V> mapLookup(Map<String,V> map)
V - 查找支持的值的类型map - 映射键值的映射,可以为空Copyright © 2019. All rights reserved.