com.github.jknack.handlebars
Class Handlebars.SafeString

java.lang.Object
  extended by com.github.jknack.handlebars.Handlebars.SafeString
All Implemented Interfaces:
CharSequence
Enclosing class:
Handlebars

public static class Handlebars.SafeString
extends Object
implements CharSequence

A Handlebars.SafeString tell Handlebars that the content should not be escaped as HTML.

Since:
0.1.0
Author:
edgar.espina

Constructor Summary
Handlebars.SafeString(CharSequence content)
          Creates a new Handlebars.SafeString.
 
Method Summary
 char charAt(int index)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Handlebars.SafeString

public Handlebars.SafeString(CharSequence content)
Creates a new Handlebars.SafeString.

Parameters:
content - The string content.
Method Detail

length

public int length()
Specified by:
length in interface CharSequence

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.