public class TypeLiterals extends Object
TypeLiteral
s.Modifier and Type | Method and Description |
---|---|
static <T> TypeLiteral<List<T>> |
listOf(Class<T> type) |
static <T> TypeLiteral<List<T>> |
listOf(TypeLiteral<T> type) |
static <K,V> TypeLiteral<Map<K,V>> |
mapOf(Class<K> keyType,
Class<V> valueType) |
static <K,V> TypeLiteral<Map<K,V>> |
mapOf(Class<K> keyType,
TypeLiteral<V> valueType) |
static <K,V> TypeLiteral<Map<K,V>> |
mapOf(TypeLiteral<K> keyType,
Class<V> valueType) |
static <K,V> TypeLiteral<Map<K,V>> |
mapOf(TypeLiteral<K> keyType,
TypeLiteral<V> valueType) |
static <T> TypeLiteral<javax.inject.Provider<T>> |
providerOf(Class<T> type) |
static <T> TypeLiteral<javax.inject.Provider<T>> |
providerOf(TypeLiteral<T> type) |
static <T> TypeLiteral<Set<T>> |
setOf(Class<T> type) |
static <T> TypeLiteral<Set<T>> |
setOf(TypeLiteral<T> type) |
public static <T> TypeLiteral<List<T>> listOf(Class<T> type)
public static <T> TypeLiteral<List<T>> listOf(TypeLiteral<T> type)
public static <T> TypeLiteral<Set<T>> setOf(Class<T> type)
public static <T> TypeLiteral<Set<T>> setOf(TypeLiteral<T> type)
public static <K,V> TypeLiteral<Map<K,V>> mapOf(Class<K> keyType, Class<V> valueType)
public static <K,V> TypeLiteral<Map<K,V>> mapOf(Class<K> keyType, TypeLiteral<V> valueType)
public static <K,V> TypeLiteral<Map<K,V>> mapOf(TypeLiteral<K> keyType, Class<V> valueType)
public static <K,V> TypeLiteral<Map<K,V>> mapOf(TypeLiteral<K> keyType, TypeLiteral<V> valueType)
public static <T> TypeLiteral<javax.inject.Provider<T>> providerOf(Class<T> type)
public static <T> TypeLiteral<javax.inject.Provider<T>> providerOf(TypeLiteral<T> type)
Copyright © 2014. All rights reserved.