1package com.bumptech.glide.load.resource.transcode;
2
3import com.bumptech.glide.load.engine.Resource;
4
5/**
6 * Transcodes a resource of one type to a resource of another type.
7 *
8 * @param <Z> The type of the resource that will be transcoded from.
9 * @param <R> The type of the resource that will be transcoded to.
10 */
11public interface ResourceTranscoder<Z, R> {
12
13    /**
14     * Transcodes the given resource to the new resource type and returns the wew resource.
15     *
16     * @param toTranscode The resource to transcode.
17     */
18    Resource<R> transcode(Resource<Z> toTranscode);
19
20    String getId();
21}
22