public static enum Produces.Type extends Enum<Produces.Type>
| Enum Constant and Description |
|---|
MAP
The method's return type forms the type argument for the value of a
Map<K, Producer<V>>, and the combination of the annotated key and the returned value
is contributed to the map as a key/value pair. |
SET
The method's resulting type forms the generic type argument of a
Set<T>, and the
returned value or future is contributed to the set. |
SET_VALUES
Like
SET, except the method's return type is either Set<T> or
Set<ListenableFuture<T>>, where any values are contributed to the set. |
UNIQUE
The method is the only one which can produce the value for the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
static Produces.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Produces.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Produces.Type UNIQUE
public static final Produces.Type SET
Set<T>, and the
returned value or future is contributed to the set. The Set<T> produced from the
accumulation of values will be immutable.public static final Produces.Type SET_VALUES
public static final Produces.Type MAP
Map<K, Producer<V>>, and the combination of the annotated key and the returned value
is contributed to the map as a key/value pair. The Map<K, Producer<V>> produced from
the accumulation of values will be immutable.public static Produces.Type[] values()
for (Produces.Type c : Produces.Type.values()) System.out.println(c);
public static Produces.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 Google, Inc.. All rights reserved.