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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNamedLiteral(String sName) ConstructCacheName.Literalinstance. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>Method returns the type of the annotation literal.booleaninthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.annotation.Annotation
toString
-
Field Details
-
f_sName
The cache name.
-
-
Constructor Details
-
AbstractNamedLiteral
ConstructCacheName.Literalinstance.- Parameters:
sName- the cache name
-
-
Method Details
-
equals
- Specified by:
equalsin interfaceAnnotation
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation
-
annotationType
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationTypein interfaceAnnotation- Returns:
- annotation type of this literal.
-