public static class KeyExtractor.NamedClassNameExtractor extends Object implements KeyExtractor
An implementation of KeyExtractor that extract the value specified in Named annotation marked on the class of a java bean (data)
KeyExtractor.NamedClassNameExtractor, KeyExtractor.PropertyExtractor| Constructor and Description |
|---|
NamedClassNameExtractor(Class<?> mapKeyType) |
public NamedClassNameExtractor(Class<?> mapKeyType)
public Object keyOf(String hint, Object data)
KeyExtractorGet the key of data.
keyOf in interface KeyExtractorhint - optional, a string value provides hint to extract keydata - the value dataCopyright © 2016–2019 OSGL (Open Source General Library). All rights reserved.