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() |
Modifier and Type | Method and Description |
---|---|
static <Z> ResourceTranscoder<Z,Z> |
get() |
Resource<Z> |
transcode(Resource<Z> toTranscode)
Transcodes the given resource to the new resource type and returns the new resource.
|
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.