Class PofExtractor.Literal
java.lang.Object
io.micronaut.coherence.annotation.PofExtractor.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- PofExtractor
An annotation literal for the
PofExtractor
annotation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.PofExtractor
PofExtractor.Extractors, PofExtractor.Literal
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Method returns the type of the annotation literal.boolean
int
hashCode()
int[]
index()
The POF indexes to use to extract a value.static PofExtractor.Literal
of
(int... value) Create aPofExtractor.Literal
.static PofExtractor.Literal
Create aPofExtractor.Literal
.static PofExtractor.Literal
Create aPofExtractor.Literal
.path()
Returns a property path to use to extract the value.Class<?>
type()
The type being extracted.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
-
Method Details
-
of
Create aPofExtractor.Literal
.- Parameters:
value
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
of
Create aPofExtractor.Literal
.- Parameters:
type
- the type of the extracted valuevalue
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
of
Create aPofExtractor.Literal
.- Parameters:
type
- the type of the extracted valuepath
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
index
public int[] index()The POF indexes to use to extract a value.- Returns:
- the POF indexes to use to extract a value
-
path
Returns a property path to use to extract the value.This attribute can only be used in combination with the
type()
attribute, and only if the specified type is annotated with a@PortableType
annotation and instrumented usingPortableTypeGenerator
.- Returns:
- a property path to use to extract the value
-
type
The type being extracted.- Returns:
- the type being extracted
-
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.
-