Record Class CJ1LocationSummary
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1LocationSummary
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("A location summary.")
public record CJ1LocationSummary(UUID id, Optional<UUID> parent, List<String> path, OffsetDateTime timeCreated, OffsetDateTime timeUpdated)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1LocationSummary(UUID id, Optional<UUID> parent, List<String> path, OffsetDateTime timeCreated, OffsetDateTime timeUpdated) Creates an instance of aCJ1LocationSummaryrecord 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.id()Returns the value of theidrecord component.parent()Returns the value of theparentrecord component.path()Returns the value of thepathrecord component.Returns the value of thetimeCreatedrecord component.Returns the value of thetimeUpdatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1LocationSummary
public CJ1LocationSummary(@JsonPropertyDescription("The location ID.") UUID id, @JsonPropertyDescription("The location parent.") Optional<UUID> parent, @JsonPropertyDescription("The location path.") List<String> path, @JsonPropertyDescription("The location creation time.") OffsetDateTime timeCreated, @JsonPropertyDescription("The location most recent update time.") OffsetDateTime timeUpdated) Creates an instance of aCJ1LocationSummaryrecord class.- Parameters:
id- the value for theidrecord componentparent- the value for theparentrecord componentpath- the value for thepathrecord componenttimeCreated- the value for thetimeCreatedrecord componenttimeUpdated- the value for thetimeUpdatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
parent
-
path
-
timeCreated
Returns the value of thetimeCreatedrecord component.- Returns:
- the value of the
timeCreatedrecord component
-
timeUpdated
@JsonPropertyDescription("The location most recent update time.") public OffsetDateTime timeUpdated()Returns the value of thetimeUpdatedrecord component.- Returns:
- the value of the
timeUpdatedrecord component
-