Class PofExtractor.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.PofExtractor.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- PofExtractor
public static class PofExtractor.Literal extends java.lang.Object implements PofExtractor
An annotation literal for thePofExtractor
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.PofExtractor
PofExtractor.Extractors, PofExtractor.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()
int[]
index()
The POF indexes to use to extract a value.static PofExtractor.Literal
of(int... value)
Create aPofExtractor.Literal
.static PofExtractor.Literal
of(java.lang.Class<?> type, int... value)
Create aPofExtractor.Literal
.static PofExtractor.Literal
of(java.lang.Class<?> type, java.lang.String path)
Create aPofExtractor.Literal
.java.lang.String
path()
Returns a property path to use to extract the value.java.lang.Class<?>
type()
The type being extracted.
-
-
-
Method Detail
-
of
public static PofExtractor.Literal of(int... value)
Create aPofExtractor.Literal
.- Parameters:
value
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
of
public static PofExtractor.Literal of(java.lang.Class<?> type, int... value)
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
public static PofExtractor.Literal of(java.lang.Class<?> type, java.lang.String path)
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
public java.lang.String 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
public java.lang.Class<?> type()
The type being extracted.- Returns:
- the type being extracted
-
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.
-
-