K - key typeV - value type@FunctionalInterface public interface DataProvider<K,V> extends Function<Collection<K>,Map<K,V>>
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> DataProvider<K,V> |
empty()
Get an empty provider that always return
Collections.emptyMap() when call Function.apply(T). |
static <K,V> DataProvider<K,V> |
fixed(Map<K,V> data)
Get a provider that always return
data when call Function.apply(T). |
static <K,V> DataProvider<K,V> empty()
Collections.emptyMap() when call Function.apply(T).K - key typeV - value typestatic <K,V> DataProvider<K,V> fixed(Map<K,V> data)
data when call Function.apply(T).K - key typeV - value typedata - data to returnCopyright © 2024. All rights reserved.