public class OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml extends Object implements SafeHtml
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 and Description |
---|
OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(String html)
Constructs an instance from a given HTML String.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns this object's contained HTML as a string.
|
boolean |
equals(Object obj)
Compares this string to the specified object.
|
int |
hashCode()
Returns a hash code for this string.
|
public OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(String html)
html
- an HTML String that is assumed to be safepublic 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.
public boolean equals(Object obj)
Copyright © 2018. All rights reserved.