Record Class OverrideResolver.ReferenceAdaptation

java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.OverrideResolver.ReferenceAdaptation
Record Components:
argumentTypes - The type each value the functional interface passes is cast to, or null where it is passed as is
argumentConversions - The types each value is converted to before its argument type, the outer first: the raw bound of a variable, and the box of a primitive
resultType - The type the result is cast to, or null where it is returned as is
resultBound - The raw bound of a variable result type the result is converted to first, or null
Enclosing class:
OverrideResolver

public static record OverrideResolver.ReferenceAdaptation(List<@Nullable TypeDef> argumentTypes, List<List<TypeDef>> argumentConversions, @Nullable TypeDef resultType, @Nullable TypeDef resultBound) extends Record
The conversions a method reference to a narrowed method is written with.
Since:
2.3
  • Constructor Details

    • ReferenceAdaptation

      public ReferenceAdaptation(List<@Nullable TypeDef> argumentTypes, List<List<TypeDef>> argumentConversions, @Nullable TypeDef resultType, @Nullable TypeDef resultBound)
      Creates an instance of a ReferenceAdaptation record class.
      Parameters:
      argumentTypes - the value for the argumentTypes record component
      argumentConversions - the value for the argumentConversions record component
      resultType - the value for the resultType record component
      resultBound - the value for the resultBound record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • argumentTypes

      public List<@Nullable TypeDef> argumentTypes()
      Returns the value of the argumentTypes record component.
      Returns:
      the value of the argumentTypes record component
    • argumentConversions

      public List<List<TypeDef>> argumentConversions()
      Returns the value of the argumentConversions record component.
      Returns:
      the value of the argumentConversions record component
    • resultType

      public @Nullable TypeDef resultType()
      Returns the value of the resultType record component.
      Returns:
      the value of the resultType record component
    • resultBound

      public @Nullable TypeDef resultBound()
      Returns the value of the resultBound record component.
      Returns:
      the value of the resultBound record component