com.bumptech.glide.load.model
Class GlideUrl

java.lang.Object
  extended by 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.


Constructor Summary
GlideUrl(String url)
           
GlideUrl(URL url)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 URL toURL()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlideUrl

public GlideUrl(URL url)

GlideUrl

public GlideUrl(String url)
Method Detail

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