Record Class TestLinkData
java.lang.Object
java.lang.Record
org.opentrafficsim.kpi.sampling.impl.TestLinkData
- Record Components:
getId- idgetLength- lengthgetLanes- lanes
- All Implemented Interfaces:
Identifiable,LinkData<TestLaneData>
public record TestLinkData(String getId, Length getLength, List<TestLaneData> getLanes)
extends Record
implements LinkData<TestLaneData>
Test LinkData class.
-
Constructor Summary
ConstructorsConstructorDescriptionTestLinkData(String id, Length length) Constructor.TestLinkData(String getId, Length getLength, List<TestLaneData> getLanes) Creates an instance of aTestLinkDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getId()Returns the value of thegetIdrecord component.getLanes()Returns the value of thegetLanesrecord component.Returns the value of thegetLengthrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
getId
Returns the value of thegetIdrecord component.- Specified by:
getIdin interfaceIdentifiable- Returns:
- the value of the
getIdrecord component
-
getLength
Returns the value of thegetLengthrecord component.- Specified by:
getLengthin interfaceLinkData<TestLaneData>- Returns:
- the value of the
getLengthrecord component
-
getLanes
Returns the value of thegetLanesrecord component.- Specified by:
getLanesin interfaceLinkData<TestLaneData>- Returns:
- the value of the
getLanesrecord component
-