Class PropertyExtractor.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.PropertyExtractor.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- PropertyExtractor
public static class PropertyExtractor.Literal extends java.lang.Object implements PropertyExtractor
An annotation literal for thePropertyExtractor
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.PropertyExtractor
PropertyExtractor.Extractors, PropertyExtractor.Literal
-
-
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 PropertyExtractor.Literal
of(java.lang.String sPropertyName)
Create aPropertyExtractor.Literal
.java.lang.String
value()
The name of the property to extract.
-
-
-
Method Detail
-
of
public static PropertyExtractor.Literal of(java.lang.String sPropertyName)
Create aPropertyExtractor.Literal
.- Parameters:
sPropertyName
- the name of the property to extract- Returns:
- a
PropertyExtractor.Literal
with the specified value
-
value
public java.lang.String value()
The name of the property to extract.- Returns:
- the name of the property to extract
-
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.
-
-