Class Name.Literal
java.lang.Object
io.micronaut.coherence.annotation.Name.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- Name
An annotation literal for the
Name
annotation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.Name
Name.Literal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Method returns the type of the annotation literal.boolean
int
hashCode()
static Name.Literal
Create aName.Literal
.boolean
regex()
Returntrue
to indicate whether name is a regular expression.value()
The name used to identify a specific resource.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 Details
-
Literal
ConstructName.Literal
instance.- Parameters:
sName
- the resource namefRegex
-true
to indicate whether name is a regular expression
-
-
Method Details
-
of
Create aName.Literal
.- Parameters:
sName
- the resource name- Returns:
- a
Name.Literal
with the specified value
-
value
The name used to identify a specific resource.- Returns:
- the name used to identify a specific resource
-
regex
public boolean regex()Returntrue
to indicate whether name is a regular expression.- Returns:
true
to indicate whether name is a regular expression
-
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.
-