Z
- The type of the resource that will be transcoded from and to.public class UnitTranscoder<Z> extends Object implements ResourceTranscoder<Z,Z>
ResourceTranscoder
that simply returns the given resource.Constructor and Description |
---|
UnitTranscoder() |
public static <Z> ResourceTranscoder<Z,Z> get()
public Resource<Z> transcode(Resource<Z> toTranscode)
ResourceTranscoder
transcode
in interface ResourceTranscoder<Z,Z>
toTranscode
- The resource to transcode.public String getId()
getId
in interface ResourceTranscoder<Z,Z>