com.syrtsov.utils
Class Annotations
java.lang.Object
com.syrtsov.utils.Annotations
public class Annotations
- extends java.lang.Object
psdo: add class comments
Created-By: Pavel Syrtsov
Date: Apr 10, 2008
Time: 3:49:45 PM
Method Summary |
static
<A extends java.lang.annotation.Annotation>
A |
|
findAnnotation(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.Class<A> expectedAnnotation)
|
static
<A extends java.lang.annotation.Annotation>
A |
|
findAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<A> expectedAnnotation)
come up with better name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotations
public Annotations()
findAnnotation
public static <A extends java.lang.annotation.Annotation> A findAnnotation(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.Class<A> expectedAnnotation)
findAnnotation
public static <A extends java.lang.annotation.Annotation> A findAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<A> expectedAnnotation)
- come up with better name
- Parameters:
annotations
- expectedAnnotation
-
- Returns: