@Target(value=METHOD)
@Retention(value=RUNTIME)
private static @interface FreshValueGenerator.Generates
Annotates a method to be the instance generator of a certain type. The return type is the
generated type. The method parameters correspond to the generated type's type parameters.
For example, if the annotated method returns Map<K, V>
, the method signature should be:
Map<K, V> generateMap(K key, V value)
.