Package com.google.gwt.safehtml.shared
Class SafeUriString
java.lang.Object
com.google.gwt.safehtml.shared.SafeUriString
- All Implemented Interfaces:
SafeUri
A string wrapped as an object of type
SafeUri
.
This class is package-private and intended for internal use by the
package.
All implementors must implement .equals and .hashCode so that they operate
just like String.equals() and String.hashCode().invalid reference
com.google.gwt.safehtml
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SafeUriString
SafeUriString(String uri) Constructs aSafeUriString
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 theSafeUri
interface.- Parameters:
uri
- the string to be wrapped as aSafeUri
-
-
Method Details
-
asString
Returns this object's contained URI as a string.Based on this class' contract, the returned value will be non-null and a string that is safe to use in a URL context.
-
equals
Compares this string to the specified object. -
hashCode
public int hashCode()Returns a hash code for this string. -
toString
-