Interface KeyResolver
- All Known Implementing Classes:
DottedResolver
public interface KeyResolver
Represents a resolver of config keys, which boxes and unboxes them.
- Since:
- 2.0.1
- Author:
- MrIvanPlays
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyResolverReturns the default key resolver used by AnnotationConfig. -
Method Summary
Modifier and TypeMethodDescriptionvoidAnnotationConfig calls this method whenever it needs to populate the specifiedMapvalueswith the specifiedvalueand specifiedkey.AnnotationConfig calls this method whenever it needs the value of the specifiedkey.
-
Field Details
-
DEFAULT
Returns the default key resolver used by AnnotationConfig.
-
-
Method Details
-
unbox
AnnotationConfig calls this method whenever it needs the value of the specifiedkey.Keep in mind just because modification of the inputted
Mapvalueswon't bug you it does not mean it goes without consequences. It is strongly not recommended as it may alter the set values.- Parameters:
key- the key of the valuevalues- the values to unbox it from- Returns:
- value or null
-
boxTo
AnnotationConfig calls this method whenever it needs to populate the specifiedMapvalueswith the specifiedvalueand specifiedkey.- Parameters:
key- the key of the valuevalue- the value to boxvalues- the place where the value shall be put
-