|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.safehtml.shared.OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml
public class OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml
A string wrapped as an object of type SafeHtml
.
This class is intended only for use in generated code where the code
generator guarantees that instances of this type will adhere to the
SafeHtml
contract (hence the purposely unwieldy class name).
Constructor Summary | |
---|---|
OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(java.lang.String html)
Constructs an instance from a given HTML 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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(java.lang.String html)
html
- an HTML String that is assumed to be safeMethod 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 SafeHtml
public boolean equals(java.lang.Object obj)
equals
in interface SafeHtml
equals
in class java.lang.Object
obj
- the object to compare topublic int hashCode()
hashCode
in interface SafeHtml
hashCode
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 |