public class TransformCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static Transform<Object,Object> |
NULL
Represents a non-existent transform.
|
| Constructor and Description |
|---|
TransformCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(Class<?> ic,
Class<?> oc,
Transform<?,?> t)
Adds a transform for the specified input/output types.
|
static <I,O> Transform<I,O> |
get(Class<I> ic,
Class<O> oc)
Returns the transform for converting the specified input type to the specified output type.
|
public TransformCache()
public static void add(Class<?> ic, Class<?> oc, Transform<?,?> t)
ic - The input type.oc - The output type.t - The transform for converting the input to the output.public static <I,O> Transform<I,O> get(Class<I> ic, Class<O> oc)
ic - The input type.oc - The output type.Copyright © 2018 Apache. All rights reserved.