Key.builder()
to create keys.@Deprecated public final class KeyFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> Key<ListValue<E>> |
makeListKey(TypeToken<? extends List<E>> elementToken,
TypeToken<ListValue<E>> valueToken,
DataQuery query,
String id,
String name)
Deprecated.
Use
Key.builder() to build keys. Implementation is
being removed in future API versions |
static <K,V> Key<MapValue<K,V>> |
makeMapKey(TypeToken<Map<K,V>> elementToken,
TypeToken<MapValue<K,V>> valueToken,
DataQuery query,
String id,
String name)
Deprecated.
Use
Key.builder() to build keys. Implementation is
being removed in future API versions |
static <E> Key<OptionalValue<E>> |
makeOptionalKey(TypeToken<Optional<E>> elementToken,
TypeToken<OptionalValue<E>> valueToken,
DataQuery query,
String id,
String name)
Deprecated.
Use
Key.builder() to build keys. Implementation is
being removed in future API versions |
static <E> Key<SetValue<E>> |
makeSetKey(TypeToken<? extends Set<E>> elementToken,
TypeToken<SetValue<E>> valueToken,
DataQuery query,
String id,
String name)
Deprecated.
Use
Key.builder() to build keys. Implementation is
being removed in future API versions |
static <E,V extends BaseValue<E>> |
makeSingleKey(TypeToken<E> elementToken,
TypeToken<V> valueToken,
DataQuery query,
String id,
String name)
Deprecated.
Use
Key.builder() to build keys. Implementation is
being removed in future API versions |
@Deprecated public static <E,V extends BaseValue<E>> Key<V> makeSingleKey(TypeToken<E> elementToken, TypeToken<V> valueToken, DataQuery query, String id, String name)
Key.builder() to build keys. Implementation is
being removed in future API versionsKey with the provided E element class
and V Value class along with the provided default
DataQuery to be used with the generated Key.
Note that Keys are not registered, but it is recommended to
avoid generating Keys of potentially conflicting
DataQuery(s).
E - The type of elementV - The inferred return typeelementToken - The element classvalueToken - The value classquery - The queryid - The id for the new keyname - The name for the new key@Deprecated public static <E> Key<ListValue<E>> makeListKey(TypeToken<? extends List<E>> elementToken, TypeToken<ListValue<E>> valueToken, DataQuery query, String id, String name)
Key.builder() to build keys. Implementation is
being removed in future API versionsE - The type of elementelementToken - The element classvalueToken - The value classquery - The query to access the dataid - The id for the new keyname - The name for the new key@Deprecated public static <E> Key<SetValue<E>> makeSetKey(TypeToken<? extends Set<E>> elementToken, TypeToken<SetValue<E>> valueToken, DataQuery query, String id, String name)
Key.builder() to build keys. Implementation is
being removed in future API versionsE - The type of elementelementToken - The element classvalueToken - The value tokenquery - The query to access the dataid - The id for the new keyname - The name for the new key@Deprecated public static <K,V> Key<MapValue<K,V>> makeMapKey(TypeToken<Map<K,V>> elementToken, TypeToken<MapValue<K,V>> valueToken, DataQuery query, String id, String name)
Key.builder() to build keys. Implementation is
being removed in future API versionsKey based on a MapValue of the types
K keys and V values with the provided
DataQuery for accessing the Map in DataViews.K - The type of keysV - The type of valueselementToken - The element tokenvalueToken - The value class of the mapquery - The queryid - The id for the new keyname - The name for the new key@Deprecated public static <E> Key<OptionalValue<E>> makeOptionalKey(TypeToken<Optional<E>> elementToken, TypeToken<OptionalValue<E>> valueToken, DataQuery query, String id, String name)
Key.builder() to build keys. Implementation is
being removed in future API versionsKey based on an OptionalValue of the type
E element type with the provided DataQuery for
accessing the optionally null value in DataViews.E - The element typeelementToken - The element classvalueToken - The value classquery - The queryid - The id for the new keyname - The name for the new key