From 5a06b9427bbdd776d691ad1736cd147aa3914031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Thu, 1 Mar 2012 21:26:01 +0100 Subject: Add class for easy access to different TypeReferences. --- same/src/main/java/com/orbekk/same/Types.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 same/src/main/java/com/orbekk/same/Types.java (limited to 'same/src/main/java') 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 = + new TypeReference() {}; + public final static TypeReference INTEGER = + new TypeReference() {}; + public static TypeReference fromType(Class clazz) { + return new TypeReference() {}; + } +} -- cgit v1.2.3