com.bumptech.glide.load.model
Class GlideUrl
java.lang.Object
com.bumptech.glide.load.model.GlideUrl
public class GlideUrl
- extends Object
This is a simple wrapper for strings representing http/https URLs. new URL() is an excessively expensive operation
that may be unnecessary if the class loading the image from the URL doesn't actually require a URL object.
Users wishing to replace the class for handling URLs must register a factory using GlideUrl.
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