public final class TypeTokens extends Object
TypeToken
instances.Modifier and Type | Method and Description |
---|---|
static <T> TypeToken<List<T>> |
listOf(Class<T> eltType)
|
static <T> TypeToken<List<T>> |
listOf(TypeToken<T> eltType)
|
static <K,V> TypeToken<Map<K,V>> |
mapOf(Class<K> keyType,
Class<V> valueType)
|
static <K,V> TypeToken<Map<K,V>> |
mapOf(TypeToken<K> keyType,
TypeToken<V> valueType)
|
static <T> TypeToken<Set<T>> |
setOf(Class<T> eltType)
|
static <T> TypeToken<Set<T>> |
setOf(TypeToken<T> eltType)
|
Copyright © 2012–2024. All rights reserved.