Interface CollectionItemReferencePath

All Superinterfaces:
ReferencePath

public sealed interface CollectionItemReferencePath extends ReferencePath
Represents a reference path to a specific item within a collection. This interface is a specialized form of ReferencePath, providing the ability to reference an item within a collection, such as a list or an array.
Since:
2.14
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<?>
     
     
    default io.micronaut.core.type.Argument<?>
     
    int
     
  • Method Details

    • collectionType

      Class<?> collectionType()
      Returns:
      The collection type (implementation type)
    • collectionArgument

      io.micronaut.core.type.Argument<?> collectionArgument()
      Returns:
      The collection argument
    • index

      int index()
      Returns:
      The index
    • getArgument

      default io.micronaut.core.type.Argument<?> getArgument()
      Specified by:
      getArgument in interface ReferencePath
      Returns:
      The referenced argument