Record Class DistributionPlotExtendedData.LabelData<Z extends Number>
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.graphs.DistributionPlotExtendedData.LabelData<Z>
- Type Parameters:
Z- value type- Record Components:
caption- captionxLabel- label on x-axisminimum- minimum x-valuestep- step valuemaximum- maximum x-value
- Enclosing class:
- DistributionPlotExtendedData<G extends GtuData,
Z extends Number>
public static record DistributionPlotExtendedData.LabelData<Z extends Number>(String caption, String xLabel, Z extends Number minimum, Z extends Number step, Z extends Number maximum)
extends Record
Input container for label input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maximum()Returns the value of themaximumrecord component.minimum()Returns the value of theminimumrecord component.step()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.xLabel()Returns the value of thexLabelrecord component.
-
Constructor Details
-
LabelData
Constructor.- Parameters:
caption- captionxLabel- label on x-axisminimum- minimum x-valuestep- step valuemaximum- maximum x-value
-
-
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). -
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
xLabel
Returns the value of thexLabelrecord component.- Returns:
- the value of the
xLabelrecord component
-
minimum
Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
maximum
Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-