Class PofExtractor.Literal

java.lang.Object
io.micronaut.coherence.annotation.PofExtractor.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
PofExtractor

public static final class PofExtractor.Literal extends Object implements PofExtractor
An annotation literal for the PofExtractor annotation.
See Also:
  • Method Details

    • of

      public static PofExtractor.Literal of(int... value)
      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(Class<?> type, int... value)
      Parameters:
      type - the type of the extracted value
      value - the POF indexes to use to extract the value
      Returns:
      a PofExtractor.Literal with the specified value
    • of

      public static PofExtractor.Literal of(Class<?> type, String path)
      Parameters:
      type - the type of the extracted value
      path - 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 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 using PortableTypeGenerator.

      Returns:
      a property path to use to extract the value
    • type

      public Class<?> type()
      The type being extracted.
      Returns:
      the type being extracted
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Annotation
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Annotation
    • annotationType

      public Class<? extends 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 interface Annotation
      Returns:
      annotation type of this literal.