@Test public void testGetMapValueType() throws Exception { GenericType type = new GenericType(Sub.class, Super.class.getField("map").getGenericType()); assertEquals(String.class, type.getMapValueType().getRawType()); }
public GenericType getMapValueType() { return getTypeArgument(MAP_VALUE_TYPE_VAR, Map.class); }
GenericType { public GenericType getMapValueType() { return getTypeArgument(MAP_VALUE_TYPE_VAR, Map.class); } }
GenericType { public GenericType getMapValueType() { return getTypeArgument(MAP_VALUE_TYPE_VAR, Map.class); } GenericType(Class<?> declaringClass, Type type); }
GenericType { public GenericType getMapValueType() { return getTypeArgument(MAP_VALUE_TYPE_VAR, Map.class); } GenericType(Class<?> declaringClass, Type type); Class<?> getRawType(); String toString(); GenericType getArrayElementType(); GenericType getElementType(); GenericType getListElementType(); GenericType getMapKeyType(); GenericType getMapValueType(); GenericType getSetElementType(); boolean isArray(); boolean isList(); boolean isMap(); boolean isSet(); }
GenericType { public GenericType getMapValueType() { return getTypeArgument(MAP_VALUE_TYPE_VAR, Map.class); } GenericType(Class<?> declaringClass, Type type); Class<?> getRawType(); String toString(); GenericType getArrayElementType(); GenericType getElementType(); GenericType getListElementType(); GenericType getMapKeyType(); GenericType getMapValueType(); GenericType getSetElementType(); boolean isArray(); boolean isList(); boolean isMap(); boolean isSet();  }