Record Class BasicLocation
java.lang.Object
java.lang.Record
duckpond.buriedincode.bzzd.schemas.location.BasicLocation
- Record Components:
aliases- alternate namesapiUrl- Comicvine API detail URLdateAdded- timestamp when the location was added to ComicvinedateLastUpdated- timestamp when the location was last updateddescription- full Comicvine descriptionfirstIssue- first issue appearanceid- Comicvine location IDimage- image variantsissueCount- number of issue appearancesname- location namesiteUrl- Comicvine site URLstartYear- starting yearsummary- short Comicvine summary
@NullMarked
public record BasicLocation(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, @Nullable GenericIssue firstIssue, int id, Images image, int issueCount, String name, String siteUrl, @Nullable Integer startYear, @Nullable String summary)
extends Record
Summary view of a Comicvine location returned by list and search endpoints.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicLocation(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, @Nullable GenericIssue firstIssue, int id, Images image, int issueCount, String name, String siteUrl, @Nullable Integer startYear, @Nullable String summary) Creates an instance of aBasicLocationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringaliases()Returns the value of thealiasesrecord component.apiUrl()Returns the value of theapiUrlrecord component.Returns the value of thedateAddedrecord component.Returns the value of thedateLastUpdatedrecord component.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable GenericIssueReturns the value of thefirstIssuerecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.image()Returns the value of theimagerecord component.intReturns the value of theissueCountrecord component.name()Returns the value of thenamerecord component.siteUrl()Returns the value of thesiteUrlrecord component.@Nullable IntegerReturns the value of thestartYearrecord component.@Nullable Stringsummary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BasicLocation
public BasicLocation(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, @Nullable GenericIssue firstIssue, int id, Images image, int issueCount, String name, String siteUrl, @Nullable Integer startYear, @Nullable String summary) Creates an instance of aBasicLocationrecord class.- Parameters:
aliases- the value for thealiasesrecord componentapiUrl- the value for theapiUrlrecord componentdateAdded- the value for thedateAddedrecord componentdateLastUpdated- the value for thedateLastUpdatedrecord componentdescription- the value for thedescriptionrecord componentfirstIssue- the value for thefirstIssuerecord componentid- the value for theidrecord componentimage- the value for theimagerecord componentissueCount- the value for theissueCountrecord componentname- the value for thenamerecord componentsiteUrl- the value for thesiteUrlrecord componentstartYear- the value for thestartYearrecord componentsummary- the value for thesummaryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
aliases
-
apiUrl
-
dateAdded
-
dateLastUpdated
Returns the value of thedateLastUpdatedrecord component.- Returns:
- the value of the
dateLastUpdatedrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
firstIssue
Returns the value of thefirstIssuerecord component.- Returns:
- the value of the
firstIssuerecord component
-
id
-
image
-
issueCount
public int issueCount()Returns the value of theissueCountrecord component.- Returns:
- the value of the
issueCountrecord component
-
name
-
siteUrl
-
startYear
-
summary
-