Record Class BasicPower
java.lang.Object
java.lang.Record
duckpond.buriedincode.bzzd.schemas.power.BasicPower
- Record Components:
aliases- alternate namesapiUrl- Comicvine API detail URLdateAdded- timestamp when the power was added to ComicvinedateLastUpdated- timestamp when the power was last updateddescription- full Comicvine descriptionid- Comicvine power IDname- power namesiteUrl- Comicvine site URL
@NullMarked
public record BasicPower(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, int id, String name, String siteUrl)
extends Record
Summary view of a Comicvine power returned by list and search endpoints.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicPower(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, int id, String name, String siteUrl) Creates an instance of aBasicPowerrecord 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.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.siteUrl()Returns the value of thesiteUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BasicPower
public BasicPower(@Nullable String aliases, String apiUrl, LocalDateTime dateAdded, LocalDateTime dateLastUpdated, @Nullable String description, int id, String name, String siteUrl) Creates an instance of aBasicPowerrecord 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 componentid- the value for theidrecord componentname- the value for thenamerecord componentsiteUrl- the value for thesiteUrlrecord 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
-
id
-
name
-
siteUrl
-