public final class Types
extends java.lang.Object
Decoder| Modifier and Type | Method and Description |
|---|---|
static com.faunadb.client.types.Types.CollectionType |
arrayListOf(java.lang.reflect.Type elementType)
Creates a collection type specialized for
ArrayList |
static com.faunadb.client.types.Types.CollectionType |
collectionOf(java.lang.Class<? extends java.util.Collection> collectionType,
java.lang.reflect.Type elementType)
Creates a generic collection type representation
|
static com.faunadb.client.types.Types.MapType |
hashMapOf(java.lang.reflect.Type valueType)
Creates a map type specialized for
HashMap |
static com.faunadb.client.types.Types.CollectionType |
hashSetOf(java.lang.reflect.Type elementType)
Creates a collection type specialized for
HashSet |
static com.faunadb.client.types.Types.MapType |
mapOf(java.lang.Class<? extends java.util.Map> mapType,
java.lang.reflect.Type valueType)
Creates a generic map type representation where the key is a string
|
public static com.faunadb.client.types.Types.CollectionType collectionOf(java.lang.Class<? extends java.util.Collection> collectionType,
java.lang.reflect.Type elementType)
Creates a generic collection type representation
Types.collectionOf(LinkedList.class, User.class)
collectionType - A concrete collection typeelementType - An element type of the collectionpublic static com.faunadb.client.types.Types.CollectionType arrayListOf(java.lang.reflect.Type elementType)
Creates a collection type specialized for ArrayList
Types.arrayListOf(User.class)
Types.arrayListOf(String.class)
Types.arrayListOf(int.class)
elementType - An element type of the collectionArrayListpublic static com.faunadb.client.types.Types.CollectionType hashSetOf(java.lang.reflect.Type elementType)
Creates a collection type specialized for HashSet
Types.hashSetOf(User.class)
Types.hashSetOf(String.class)
Types.hashSetOf(int.class)
elementType - An element type of the collectionHashSetpublic static com.faunadb.client.types.Types.MapType mapOf(java.lang.Class<? extends java.util.Map> mapType,
java.lang.reflect.Type valueType)
Creates a generic map type representation where the key is a string
Types.mapOf(Hashtable.class, User.class)
mapType - A concrete map typevalueType - The type of the value in the mappublic static com.faunadb.client.types.Types.MapType hashMapOf(java.lang.reflect.Type valueType)
Creates a map type specialized for HashMap
Types.hashMapOf(User.class)
valueType - The type of the value in the mapHashMap