com.syrtsov.utils
Class Annotations

java.lang.Object
  extended by 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


Constructor Summary
Annotations()
           
 
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
 

Constructor Detail

Annotations

public Annotations()
Method Detail

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: