Class UniqueLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.UniqueLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class UniqueLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Split text by the delimiter and then write only the unique entriesRegister:
additionalProperties.put("unique", new UniqueLambda());Use:
{{#unique}}{{name}}{{/unique}}
-
-
Constructor Summary
Constructors Constructor Description UniqueLambda(String delimiter, boolean withNewLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Constructor Detail
-
UniqueLambda
public UniqueLambda(String delimiter, boolean withNewLine)
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException- Specified by:
executein interfacecom.samskivert.mustache.Mustache.Lambda- Throws:
IOException
-
-