org.hamcrest
public @Interface Factory
extends Annotation
- Annotations
- @Retention:RUNTIME
- @Target:METHOD
- Static Imports
- java.lang.annotation.ElementType.METHOD, .RetentionPolicy.RUNTIME
Marks a Hamcrest static factory method so tools recognise them.
A factory method is an equivalent to a named constructor.
- Author
- Joe Walnes