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 java.lang.Object implements ResourceTranscoder<Z,Z>
A simpleResourceTranscoderthat simply returns the given resource.
-
-
Constructor Summary
Constructors Constructor Description UnitTranscoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <Z> ResourceTranscoder<Z,Z>get()Resource<Z>transcode(Resource<Z> toTranscode, Options options)Transcodes the given resource to the new resource type and returns the new resource.
-
-
-
Method Detail
-
get
public static <Z> ResourceTranscoder<Z,Z> get()
-
transcode
@Nullable public Resource<Z> transcode(@NonNull Resource<Z> toTranscode, @NonNull Options options)
Description copied from interface:ResourceTranscoderTranscodes the given resource to the new resource type and returns the new resource.- Specified by:
transcodein interfaceResourceTranscoder<Z,Z>- Parameters:
toTranscode- The resource to transcode.
-
-