Class AbstractNamedLiteral<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- io.micronaut.coherence.annotation.AbstractNamedLiteral<T>
-
- Type Parameters:
T- the annotation type
- All Implemented Interfaces:
java.io.Serializable,java.lang.annotation.Annotation
- Direct Known Subclasses:
CacheName.Literal,MapName.Literal,ScopeName.Literal,SerializerFormat.Literal,ServiceName.Literal,SessionName.Literal,SubscriberGroup.Literal
public abstract class AbstractNamedLiteral<T extends java.lang.annotation.Annotation> extends java.lang.ObjectBase class for annotation literals with a single simple name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringf_sNameThe cache name.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNamedLiteral(java.lang.String sName)ConstructCacheName.Literalinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>annotationType()Method returns the type of the annotation literal.booleanequals(java.lang.Object o)inthashCode()
-
-
-
Constructor Detail
-
AbstractNamedLiteral
protected AbstractNamedLiteral(java.lang.String sName)
ConstructCacheName.Literalinstance.- Parameters:
sName- the cache name
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.lang.annotation.Annotation
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.lang.annotation.Annotation
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationTypein interfacejava.lang.annotation.Annotation- Returns:
- annotation type of this literal.
-
-