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
ConstructorDescriptionMethodElement
(N methodElement, LinkedHashSet<N> overridden) Creates an instance of aMethodElement
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themethodElement
record component.Returns the value of theoverridden
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MethodElement
Creates an instance of aMethodElement
record class.- Parameters:
methodElement
- the value for themethodElement
record componentoverridden
- the value for theoverridden
record 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 themethodElement
record component.- Returns:
- the value of the
methodElement
record component
-
overridden
Returns the value of theoverridden
record component.- Returns:
- the value of the
overridden
record component
-