com.restfb.util
Class ReflectionUtils.FieldWithAnnotation<T extends Annotation>

java.lang.Object
  extended by com.restfb.util.ReflectionUtils.FieldWithAnnotation<T>
Enclosing class:
ReflectionUtils

public static class ReflectionUtils.FieldWithAnnotation<T extends Annotation>
extends Object

A field/annotation pair.

Author:
Mark Allen

Constructor Summary
ReflectionUtils.FieldWithAnnotation(Field field, T annotation)
          Creates a field/annotation pair.
 
Method Summary
 T getAnnotation()
          Gets the annotation on the field.
 Field getField()
          Gets the field.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectionUtils.FieldWithAnnotation

public ReflectionUtils.FieldWithAnnotation(Field field,
                                           T annotation)
Creates a field/annotation pair.

Parameters:
field - A field.
annotation - An annotation on the field.
Method Detail

getField

public Field getField()
Gets the field.

Returns:
The field.

getAnnotation

public T getAnnotation()
Gets the annotation on the field.

Returns:
The annotation on the field.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.