Class AbstractNamedLiteral<T extends Annotation>
java.lang.Object
io.micronaut.coherence.annotation.AbstractNamedLiteral<T>
- Type Parameters:
T
- the annotation type
- All Implemented Interfaces:
Serializable
,Annotation
- Direct Known Subclasses:
CacheName.Literal
,MapName.Literal
,ScopeName.Literal
,SerializerFormat.Literal
,ServiceName.Literal
,SessionName.Literal
,SubscriberGroup.Literal
Base class for annotation literals with a single simple name.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractNamedLiteral
(String sName) ConstructCacheName.Literal
instance. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Method returns the type of the annotation literal.boolean
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
-
Field Details
-
f_sName
The cache name.
-
-
Constructor Details
-
AbstractNamedLiteral
ConstructCacheName.Literal
instance.- Parameters:
sName
- the cache name
-
-
Method Details
-
equals
- Specified by:
equals
in interfaceAnnotation
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceAnnotation
-
annotationType
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationType
in interfaceAnnotation
- Returns:
- annotation type of this literal.
-