Record Class DistributionPlotExtendedData.DistributionPaintState
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.graphs.DistributionPlotExtendedData.DistributionPaintState
- Record Components:
getAvailableTime- available time
- Enclosing class:
- DistributionPlotExtendedData<G extends GtuData,
Z extends Number>
public static record DistributionPlotExtendedData.DistributionPaintState(org.djunits.value.vdouble.scalar.Duration getAvailableTime)
extends Record
Only contains time. The y-values are cumulative so direct internal storage suffices.
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionPaintState(org.djunits.value.vdouble.scalar.Duration getAvailableTime) Creates an instance of aDistributionPaintStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.djunits.value.vdouble.scalar.DurationReturns the value of thegetAvailableTimerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DistributionPaintState
public DistributionPaintState(org.djunits.value.vdouble.scalar.Duration getAvailableTime) Creates an instance of aDistributionPaintStaterecord class.- Parameters:
getAvailableTime- the value for thegetAvailableTimerecord 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). -
getAvailableTime
public org.djunits.value.vdouble.scalar.Duration getAvailableTime()Returns the value of thegetAvailableTimerecord component.- Returns:
- the value of the
getAvailableTimerecord component
-