org.jboss.metadata.annotation
Class AbstractAnnotationImpl

java.lang.Object
  extended by org.jboss.metadata.annotation.AbstractAnnotationImpl
All Implemented Interfaces:
Annotation

public class AbstractAnnotationImpl
extends Object
implements Annotation

AbstractAnnotationImpl.

Version:
$Revision: 45742 $
Author:
Adrian Brock

Constructor Summary
AbstractAnnotationImpl()
          Create a new AbstractAnnotationImpl.
AbstractAnnotationImpl(Class<? extends Annotation> annotationType)
          Create a new AbstractAnnotationImpl.
 
Method Summary
 Class<? extends Annotation> annotationType()
           
 boolean equals(Object object)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.annotation.Annotation
toString
 

Constructor Detail

AbstractAnnotationImpl

public AbstractAnnotationImpl()
Create a new AbstractAnnotationImpl.

This constructor guesses the annotationType.


AbstractAnnotationImpl

public AbstractAnnotationImpl(Class<? extends Annotation> annotationType)
Create a new AbstractAnnotationImpl.

Parameters:
annotationType - the annotation type
Method Detail

annotationType

public Class<? extends Annotation> annotationType()
Specified by:
annotationType in interface Annotation

equals

public boolean equals(Object object)
Specified by:
equals in interface Annotation
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Annotation
Overrides:
hashCode in class Object


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.