@Documented
@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER})
public @interface MapKey
Used to specify how to extract Map key from a value.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<? extends KeyExtractor> |
extractor
Specify a
key extractor. |
java.lang.String |
value
Specify the
hint to be passed into KeyExtractor.keyOf(String, Object) function call. |
public abstract java.lang.String value
Specify the hint to be passed into KeyExtractor.keyOf(String, Object) function call.
hint used to extract the key. Default value is ""public abstract java.lang.Class<? extends KeyExtractor> extractor
Specify a key extractor. Default value is KeyExtractor.PropertyExtractor.
Copyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.