Record Class NamedBinDefinition
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.engine.monitoring.data.histogram.NamedBinDefinition
- All Implemented Interfaces:
BinDefinition
-
Field Summary
Fields inherited from interface org.graylog.plugins.views.search.engine.monitoring.data.histogram.BinDefinition
NAMED_BIN_TYPE, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionNamedBinDefinition(String binName) Creates an instance of aNamedBinDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinName()Returns the value of thebinNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NamedBinDefinition
Creates an instance of aNamedBinDefinitionrecord class.- Parameters:
binName- the value for thebinNamerecord component
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceBinDefinition
-
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). -
binName
Returns the value of thebinNamerecord component.- Returns:
- the value of the
binNamerecord component
-