/** * Gets type literal for the given {@code Type} instance. */ public static TypeLiteral<?> get(Type type) { return new TypeLiteral<Object>(type); }
/** * Gets type literal for the given {@code Class} instance. */ public static <T> TypeLiteral<T> get(Class<T> type) { return new TypeLiteral<>(type); }
/** * Gets type literal from super class's type parameter. */ static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); }
/** * Gets type literal for the given {@code Type} instance. */ public static TypeLiteral<?> get(Type type) { return new TypeLiteral<Object>(type); }
/** * Gets type literal for the given {@code Class} instance. */ public static <T> TypeLiteral<T> get(Class<T> type) { return new TypeLiteral<>(type); }
/** * Gets type literal for the given {@code Type} instance. */ public static TypeLiteral<?> get(Type type) { return new TypeLiteral<Object>(type); }
/** * Gets type literal for the given {@code Class} instance. */ public static <T> TypeLiteral<T> get(Class<T> type) { return new TypeLiteral<>(type); }
/** * Gets type literal for the given {@code Type} instance. */ public static TypeLiteral<?> get(Type type) { return new TypeLiteral<Object>(type); }
/** * Gets type literal for the given {@code Type} instance. */ public static TypeLiteral<?> get(Type type) { return new TypeLiteral<Object>(type); }
/** * Gets type literal for the given {@code Class} instance. */ public static <T> TypeLiteral<T> get(Class<T> type) { return new TypeLiteral<>(type); }
/** * Gets type literal for the given {@code Class} instance. */ public static <T> TypeLiteral<T> get(Class<T> type) { return new TypeLiteral<>(type); }
/** * Gets type literal from super class's type parameter. */ static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); }
/** * Gets type literal from super class's type parameter. */ static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); }
/** * Gets type literal from super class's type parameter. */ static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); }
/** * Gets type literal from super class's type parameter. */ static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); }