Record Class PythonFunctionalInterfaceProvider.Entry
java.lang.Object
java.lang.Record
io.micronaut.context.python.PythonFunctionalInterfaceProvider.Entry
- Record Components:
typeName- The binary name of the interfacearity- The number of parameters of its single abstract methodreturnsValue- Whether the single abstract method returns a value
- Enclosing interface:
PythonFunctionalInterfaceProvider
public static record PythonFunctionalInterfaceProvider.Entry(String typeName, int arity, boolean returnsValue)
extends Record
A functional interface, named rather than referenced: an interface of a compile-time only
dependency is absent at run time, and the host access skips an entry it cannot load instead
of failing with the Python context.
- Since:
- 5.2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintarity()Returns the value of thearityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereturnsValuerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
typeName- the value for thetypeNamerecord componentarity- the value for thearityrecord componentreturnsValue- the value for thereturnsValuerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
typeName
-
arity
-
returnsValue
public boolean returnsValue()Returns the value of thereturnsValuerecord component.- Returns:
- the value of the
returnsValuerecord component
-