Record Class Metrics.Entry<T>
java.lang.Object
java.lang.Record
org.jgroups.util.Metrics.Entry<T>
- Enclosing class:
Metrics
public static record Metrics.Entry<T>(AccessibleObject type, String description, Supplier<T> supplier)
extends Record
- Since:
- 5.4, 5.3.6
- Author:
- Bela Ban
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(AccessibleObject type, String description, Supplier<T> supplier) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.supplier()Returns the value of thesupplierrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
type- the value for thetyperecord componentdescription- the value for thedescriptionrecord componentsupplier- the value for thesupplierrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
supplier
-