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
Modifier and TypeFieldDescriptionstatic final KeyResolver
Returns the default key resolver used by AnnotationConfig. -
Method Summary
Modifier and TypeMethodDescriptionvoid
AnnotationConfig calls this method whenever it needs to populate the specifiedMap
values
with the specifiedvalue
and 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
Map
values
won'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 specifiedMap
values
with the specifiedvalue
and specifiedkey
.- Parameters:
key
- the key of the valuevalue
- the value to boxvalues
- the place where the value shall be put
-