Class Name.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.Name.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- Name
public static class Name.Literal extends java.lang.Object implements Name
An annotation literal for theName
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.Name
Name.Literal
-
-
Constructor Summary
Constructors Constructor Description Literal(java.lang.String sName, boolean fRegex)
ConstructName.Literal
instance.
-
Method Summary
All Methods Static 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.boolean
equals(java.lang.Object o)
int
hashCode()
static Name.Literal
of(java.lang.String sName)
Create aName.Literal
.boolean
regex()
Returntrue
to indicate whether name is a regular expression.java.lang.String
value()
The name used to identify a specific resource.
-
-
-
Constructor Detail
-
Literal
public Literal(java.lang.String sName, boolean fRegex)
ConstructName.Literal
instance.- Parameters:
sName
- the resource namefRegex
-true
to indicate whether name is a regular expression
-
-
Method Detail
-
of
public static Name.Literal of(java.lang.String sName)
Create aName.Literal
.- Parameters:
sName
- the resource name- Returns:
- a
Name.Literal
with the specified value
-
value
public java.lang.String 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
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.lang.annotation.Annotation
-
hashCode
public int hashCode()
- Specified by:
hashCode
in 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:
annotationType
in interfacejava.lang.annotation.Annotation
- Returns:
- annotation type of this literal.
-
-