|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.safehtml.shared.SafeHtmlString
class SafeHtmlString
A string wrapped as an object of type SafeHtml.
This class is package-private and intended for internal use by the
com.google.gwt.safehtml package.
All implementors must implement .equals and .hashCode so that they operate just like String.equals() and String.hashCode().
| Constructor Summary | |
|---|---|
SafeHtmlString(java.lang.String html)
Constructs a SafeHtmlString from a string. |
|
| Method Summary | |
|---|---|
java.lang.String |
asString()
Returns this object's contained HTML as a string. |
boolean |
equals(java.lang.Object obj)
Compares this string to the specified object. |
int |
hashCode()
Returns a hash code for this string. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
SafeHtmlString(java.lang.String html)
SafeHtmlString from 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 the SafeHtml
interface.
html - the string to be wrapped as a SafeHtml| Method Detail |
|---|
public java.lang.String asString()
Based on this class' contract, the returned value will be non-null and a string that is safe to use in an HTML context.
asString in interface SafeHtmlpublic boolean equals(java.lang.Object obj)
equals in interface SafeHtmlequals in class java.lang.Objectobj - the object to compare topublic int hashCode()
hashCode in interface SafeHtmlhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||