Class Handlebars.SafeString

  • All Implemented Interfaces:
    java.lang.CharSequence
    Enclosing class:
    Handlebars

    public static class Handlebars.SafeString
    extends java.lang.Object
    implements java.lang.CharSequence
    A Handlebars.SafeString tell Handlebars that the content should not be escaped as HTML.
    Since:
    0.1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.CharSequence content
      The content.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int index)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      int length()  
      java.lang.CharSequence subSequence​(int start, int end)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Field Detail

      • content

        public final java.lang.CharSequence content
        The content.
    • Constructor Detail

      • SafeString

        public SafeString​(java.lang.CharSequence content)
        Creates a new Handlebars.SafeString.
        Parameters:
        content - The string content.
    • Method Detail

      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object