com.bumptech.glide.load.resource.transcode
Class UnitTranscoder<Z>

java.lang.Object
  extended by com.bumptech.glide.load.resource.transcode.UnitTranscoder<Z>
Type Parameters:
Z - The type of the resource that will be transcoded from and to.
All Implemented Interfaces:
ResourceTranscoder<Z,Z>

public class UnitTranscoder<Z>
extends Object
implements ResourceTranscoder<Z,Z>

A simple ResourceTranscoder that simply returns the given resource.


Constructor Summary
UnitTranscoder()
           
 
Method Summary
static
<Z> ResourceTranscoder<Z,Z>
get()
           
 String getId()
           
 Resource<Z> transcode(Resource<Z> toTranscode)
          Transcodes the given resource to the new resource type and returns the wew resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTranscoder

public UnitTranscoder()
Method Detail

get

public static <Z> ResourceTranscoder<Z,Z> get()

transcode

public Resource<Z> transcode(Resource<Z> toTranscode)
Description copied from interface: ResourceTranscoder
Transcodes the given resource to the new resource type and returns the wew resource.

Specified by:
transcode in interface ResourceTranscoder<Z,Z>
Parameters:
toTranscode - The resource to transcode.

getId

public String getId()
Specified by:
getId in interface ResourceTranscoder<Z,Z>