Class MapTemplate
java.lang.Object
io.github.projectunified.maptemplate.MapTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA fluent builder for creatingMapTemplate.OptionsandMapTemplateinstances.static classConfiguration options forMapTemplate. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapTemplate(MapTemplate.Options options) Create a newMapTemplatewith the given options. -
Method Summary
Modifier and TypeMethodDescriptionApplies the variables to an object depending on its type.static MapTemplate.Builderbuilder()Create a new builder forMapTemplate.Options.
-
Field Details
-
START_VARIABLE
The default start variable string.- See Also:
-
END_VARIABLE
The default end variable string.- See Also:
-
ESCAPE_CHAR
The default escape character string.- See Also:
-
-
Constructor Details
-
MapTemplate
Create a newMapTemplatewith the given options.- Parameters:
options- the options
-
-
Method Details
-
builder
Create a new builder forMapTemplate.Options.- Returns:
- the builder
-
apply
Applies the variables to an object depending on its type. Processes Collections, Maps, and Strings recursively.- Parameters:
obj- the object to process- Returns:
- the resolved object
-