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 enum
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionItemTrace
(String location, ItemTrace.IconType icon, List<String> transports, List<ItemTrace.ItemTraceStep> steps) Creates an instance of aItemTrace
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.location()
Returns the value of thelocation
record component.steps()
Returns the value of thesteps
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransports
record component.
-
Constructor Details
-
ItemTrace
public ItemTrace(String location, ItemTrace.IconType icon, List<String> transports, List<ItemTrace.ItemTraceStep> steps) Creates an instance of aItemTrace
record class.- Parameters:
location
- the value for thelocation
record componenticon
- the value for theicon
record componenttransports
- the value for thetransports
record componentsteps
- the value for thesteps
record 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 thelocation
record component.- Returns:
- the value of the
location
record component
-
icon
Returns the value of theicon
record component.- Returns:
- the value of the
icon
record component
-
transports
Returns the value of thetransports
record component.- Returns:
- the value of the
transports
record component
-
steps
Returns the value of thesteps
record component.- Returns:
- the value of the
steps
record component
-