Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.hamcrest;
 
 import static java.lang.annotation.ElementType.METHOD;
 import static java.lang.annotation.RetentionPolicy.RUNTIME;
Marks a Hamcrest static factory method so tools recognise them. A factory method is an equivalent to a named constructor.

Author(s):
Joe Walnes
public @interface Factory {
New to GrepCode? Check out our FAQ X