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 thePofExtractorannotation.- 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.booleanequals(java.lang.Object o)inthashCode()int[]index()The POF indexes to use to extract a value.static PofExtractor.Literalof(int... value)Create aPofExtractor.Literal.static PofExtractor.Literalof(java.lang.Class<?> type, int... value)Create aPofExtractor.Literal.static PofExtractor.Literalof(java.lang.Class<?> type, java.lang.String path)Create aPofExtractor.Literal.java.lang.Stringpath()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.Literalwith 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.Literalwith 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.Literalwith 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@PortableTypeannotation 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:
equalsin interfacejava.lang.annotation.Annotation
-
hashCode
public int hashCode()
- Specified by:
hashCodein 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:
annotationTypein interfacejava.lang.annotation.Annotation- Returns:
- annotation type of this literal.
-
-