K - generic type of the keyV - generic type of the valuepublic interface KeyExtractor<K,V>
A KeyExtractor can be used to extract or derive “key” from a value data. The result “key” can be used to index the value in a Map data structure.
A general contract implementation must obey is different value must generate different key
| Modifier and Type | Interface and Description |
|---|---|
static class |
KeyExtractor.PropertyExtractor
An implementation of
KeyExtractor that extract property (specified through hint parameter) from a java bean (data). |
| Modifier and Type | Method and Description |
|---|---|
K |
keyOf(java.lang.String hint,
V data)
Get the key of data.
|
Copyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.