Package com.google.gwt.safehtml.shared
Class SafeHtmlString
java.lang.Object
com.google.gwt.safehtml.shared.SafeHtmlString
- All Implemented Interfaces:
SafeHtml,Serializable
A string wrapped as an object of type
SafeHtml.
This class is package-private and intended for internal use by the
package.
invalid reference
com.google.gwt.safehtml
All implementors must implement .equals and .hashCode so that they operate just like String.equals() and String.hashCode().
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SafeHtmlString
SafeHtmlString(String html) Constructs aSafeHtmlStringfrom a string. Callers are responsible for ensuring that the string passed as the argument to this constructor satisfies the constraints of the contract imposed by theSafeHtmlinterface.- Parameters:
html- the string to be wrapped as aSafeHtml
-
-
Method Details
-
asString
-
equals
-
hashCode
-
toString
-