com.bumptech.glide.load.resource.transcode
Class UnitTranscoder<Z>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnitTranscoder
public UnitTranscoder()
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>