Package com.github.jknack.handlebars
Class Handlebars.SafeString
- java.lang.Object
-
- com.github.jknack.handlebars.Handlebars.SafeString
-
- All Implemented Interfaces:
java.lang.CharSequence
- Enclosing class:
- Handlebars
public static class Handlebars.SafeString extends java.lang.Object implements java.lang.CharSequence
AHandlebars.SafeString
tellHandlebars
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.
-
Constructor Summary
Constructors Constructor Description SafeString(java.lang.CharSequence content)
Creates a newHandlebars.SafeString
.
-
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()
-
-
-
Constructor Detail
-
SafeString
public SafeString(java.lang.CharSequence content)
Creates a newHandlebars.SafeString
.- Parameters:
content
- The string content.
-
-
Method Detail
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-