IT. Expert System.

Java Enterprise Edition (EE)

AnnotationLiteral


javax.enterprise.util
Class AnnotationLiteral<T extends java.lang.annotation.Annotation>

java.lang.Object
  javax.enterprise.util.AnnotationLiteral<T>
Type Parameters:
T - the annotation type
All Implemented Interfaces:
java.io.Serializable, java.lang.annotation.Annotation
public abstract class AnnotationLiteral<T extends java.lang.annotation.Annotation>
extends java.lang.Object
implements java.lang.annotation.Annotation, java.io.Serializable

Supports inline instantiation of annotation type instances.

An instance of an annotation type may be obtained by subclassing AnnotationLiteral.

 public abstract class PayByQualifier 
       extends AnnotationLiteral<PayBy>
       implements PayBy {}
 
 PayBy paybyCheque = new PayByQualifier() { public PaymentMethod value() { return CHEQUE; } };
 

Author:
Pete Muir, Gavin King
See Also:
Instance.select(Annotation...), Event.select(Annotation...), Serialized Form

Constructor Summary
protected AnnotationLiteral()
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationLiteral

protected AnnotationLiteral()
Method Detail

annotationType

public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Specified by:
annotationType in interface java.lang.annotation.Annotation

toString

public java.lang.String toString()
Specified by:
toString in interface java.lang.annotation.Annotation
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.lang.annotation.Annotation
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.lang.annotation.Annotation
Overrides:
hashCode in class java.lang.Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 50 / . Delta: 0.00583 с