com.bumptech.glide.load.model
Class LazyHeaders

java.lang.Object
  extended by com.bumptech.glide.load.model.LazyHeaders
All Implemented Interfaces:
Headers

public final class LazyHeaders
extends Object
implements Headers

A wrapper class for a set of headers to be included in a Glide request, allowing headers to be constructed lazily.

Ideally headers are constructed once and then re-used for multiple loads, rather then being constructed individually for each load.

This class is thread safe.


Nested Class Summary
static class LazyHeaders.Builder
          Builder class for LazyHeaders.
 
Field Summary
 
Fields inherited from interface com.bumptech.glide.load.model.Headers
NONE
 
Method Summary
 boolean equals(Object o)
           
 Map<String,String> getHeaders()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getHeaders

public Map<String,String> getHeaders()
Specified by:
getHeaders in interface Headers

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