Record Class ItemTrace
java.lang.Object
java.lang.Record
com.persequor.saga.modules.dpp.models.ItemTrace
public record ItemTrace(String location, ItemTrace.IconType icon, List<String> transports, List<ItemTrace.ItemTraceStep> steps)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionItemTrace(String location, ItemTrace.IconType icon, List<String> transports, List<ItemTrace.ItemTraceStep> steps) Creates an instance of aItemTracerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.location()Returns the value of thelocationrecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportsrecord component.
-
Constructor Details
-
ItemTrace
public ItemTrace(String location, ItemTrace.IconType icon, List<String> transports, List<ItemTrace.ItemTraceStep> steps) Creates an instance of aItemTracerecord class.- Parameters:
location- the value for thelocationrecord componenticon- the value for theiconrecord componenttransports- the value for thetransportsrecord componentsteps- the value for thestepsrecord 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). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
transports
Returns the value of thetransportsrecord component.- Returns:
- the value of the
transportsrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-