Record Class ReactiveHealthContributors.Entry
java.lang.Object
java.lang.Record
org.springframework.boot.health.contributor.ReactiveHealthContributors.Entry
- Record Components:
name- the name of the contributorcontributor- the contributor
- Enclosing interface:
ReactiveHealthContributors
public static record ReactiveHealthContributors.Entry(String name, ReactiveHealthContributor contributor)
extends Record
A reactive health contributor entry.
- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(String name, ReactiveHealthContributor contributor) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontributorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
name- the value for thenamerecord componentcontributor- the value for thecontributorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
contributor
Returns the value of thecontributorrecord component.- Returns:
- the value of the
contributorrecord component
-