@Test public void testPrettyPT2() { ParameterizedTypeImpl pti = new ParameterizedTypeImpl(Map.class, String.class, Integer.class); Assert.assertEquals("Map<String,Integer>", Pretty.type(pti)); }
public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); }
Pretty { public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); } }
Pretty { public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); }  }
Pretty { public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); }  static String clazz(Class<?> clazz); static String pType(ParameterizedType pType); static String type(Type t); static String constructor(Constructor<?> constructor); static String method(Method method); static String field(Field field); static String array(Object[] array); static String collection(Collection<?> collection); }
Pretty { public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); }  static String clazz(Class<?> clazz); static String pType(ParameterizedType pType); static String type(Type t); static String constructor(Constructor<?> constructor); static String method(Method method); static String field(Field field); static String array(Object[] array); static String collection(Collection<?> collection);  }