Class CommentFunction

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.String,​java.lang.String>

    public class CommentFunction
    extends java.lang.Object
    implements java.util.function.Function<java.lang.String,​java.lang.String>
    Mustache.java block comment function. Usage code with a class: public class ... { CommentFunction comment = new CommentFunction(); ... } Usage code with a Map: HashMap<String, Object> scopes = new HashMap<String, Object>(); scopes.put("comment", new CommentFunction()); ... Usage in template: ... {{#comment}} Your multiline comment text {{/comment}} ...
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentFunction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String input)
      Ignore contents of comment block.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • CommentFunction

        public CommentFunction()
    • Method Detail

      • apply

        public java.lang.String apply​(java.lang.String input)
        Ignore contents of comment block.
        Specified by:
        apply in interface java.util.function.Function<java.lang.String,​java.lang.String>