Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
15 additions
and 0 deletions.
@@ -0,0 +1,15 @@ | ||
package restx.common; | ||
|
||
import com.google.common.base.Function; | ||
|
||
import java.lang.annotation.Annotation; | ||
|
||
public class MoreAnnotations { | ||
public static final Function<Annotation, Class<? extends Annotation>> EXTRACT_ANNOTATION_TYPE = new Function<Annotation, Class<? extends Annotation>>() { | ||
@Override | ||
public Class<? extends Annotation> apply(Annotation input) { | ||
return input.annotationType(); | ||
} | ||
}; | ||
|
||
} |