Package com.github.jknack.handlebars
Class Handlebars.SafeString
- java.lang.Object
-
- com.github.jknack.handlebars.Handlebars.SafeString
-
- All Implemented Interfaces:
CharSequence
- Enclosing class:
- Handlebars
public static class Handlebars.SafeString extends Object implements CharSequence
AHandlebars.SafeStringtellHandlebarsthat the content should not be escaped as HTML.- Since:
- 0.1.0
-
-
Field Summary
Fields Modifier and Type Field Description CharSequencecontentThe content.
-
Constructor Summary
Constructors Constructor Description SafeString(CharSequence content)Creates a newHandlebars.SafeString.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)booleanequals(Object obj)inthashCode()intlength()CharSequencesubSequence(int start, int end)StringtoString()-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Field Detail
-
content
public final CharSequence content
The content.
-
-
Constructor Detail
-
SafeString
public SafeString(CharSequence content)
Creates a newHandlebars.SafeString.- Parameters:
content- The string content.
-
-
Method Detail
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
-