diff options
Diffstat (limited to 'same/src/main/java')
-rw-r--r-- | same/src/main/java/com/orbekk/same/Types.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/same/src/main/java/com/orbekk/same/Types.java b/same/src/main/java/com/orbekk/same/Types.java new file mode 100644 index 0000000..3185acf --- /dev/null +++ b/same/src/main/java/com/orbekk/same/Types.java @@ -0,0 +1,13 @@ +package com.orbekk.same; + +import org.codehaus.jackson.type.TypeReference; + +public class Types { + public final static TypeReference<String> STRING = + new TypeReference<String>() {}; + public final static TypeReference<Integer> INTEGER = + new TypeReference<Integer>() {}; + public static <T> TypeReference<T> fromType(Class<T> clazz) { + return new TypeReference<T>() {}; + } +} |