Package io.micronaut.inject.utils
Record Class NativeElementsHelper.MethodElement<N>
java.lang.Object
java.lang.Record
io.micronaut.inject.utils.NativeElementsHelper.MethodElement<N>
- Type Parameters:
N- The native method element type- Record Components:
methodElement- The elementoverridden- The overridden collection
- Enclosing class:
- NativeElementsHelper<C,
M>
public static record NativeElementsHelper.MethodElement<N>(N methodElement, LinkedHashSet<N> overridden)
extends Record
The method element.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodElement(N methodElement, LinkedHashSet<N> overridden) Creates an instance of aMethodElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodElementrecord component.Returns the value of theoverriddenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodElement
Creates an instance of aMethodElementrecord class.- Parameters:
methodElement- the value for themethodElementrecord componentoverridden- the value for theoverriddenrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
methodElement
Returns the value of themethodElementrecord component.- Returns:
- the value of the
methodElementrecord component
-
overridden
Returns the value of theoverriddenrecord component.- Returns:
- the value of the
overriddenrecord component
-