com.bumptech.glide.load.model
Class GlideUrl
java.lang.Object
com.bumptech.glide.load.model.GlideUrl
public class GlideUrl
- extends Object
A wrapper for strings representing http/https URLs responsible for ensuring URLs are properly escaped and avoiding
unnecessary URL instantiations for loaders that require only string urls rather than URL objects.
Users wishing to replace the class for handling URLs must register a factory using GlideUrl.
To obtain a properly escaped URL, call toURL()
. To obtain a properly escaped string URL, call
toURL()
and then URL.toString()
.
GlideUrl
public GlideUrl(URL url)
GlideUrl
public GlideUrl(String url)
toURL
public URL toURL()
throws MalformedURLException
- Throws:
MalformedURLException
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object