程序包 org.hamcrest
注释类型 Factory
@Retention(RUNTIME) @Target(METHOD) public @interface Factory
Marks a Hamcrest static factory method so tools recognise them. A factory method is an equivalent to a named constructor.
@Retention(RUNTIME) @Target(METHOD) public @interface Factory