Package dev.reuss.tmdb.common.external
Record Class ExternalIds
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.external.ExternalIds
- Record Components:
id- TMDB resource idimdbId- IMDb idwikidataId- Wikidata idfacebookId- Facebook idinstagramId- Instagram idtwitterId- Twitter idtvdbId- TVDB idtvrageId- TVRage idfreebaseMid- Freebase machine idfreebaseId- Freebase idtiktokId- TikTok idyoutubeId- YouTube id
- All Implemented Interfaces:
TmdbModel,Serializable
public record ExternalIds(int id, String imdbId, String wikidataId, String facebookId, String instagramId, String twitterId, Integer tvdbId, Integer tvrageId, String freebaseMid, String freebaseId, String tiktokId, String youtubeId)
extends Record
implements TmdbModel
External identifiers associated with a TMDB resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefacebookIdrecord component.Returns the value of thefreebaseIdrecord component.Returns the value of thefreebaseMidrecord component.booleanReturns whether any external database identifier is present.final inthashCode()Returns a hash code value for this object.booleanReturns whether any social media identifier is present.intid()Returns the value of theidrecord component.imdbId()Returns the value of theimdbIdrecord component.Returns the value of theinstagramIdrecord component.tiktokId()Returns the value of thetiktokIdrecord component.final StringtoString()Returns a string representation of this record class.tvdbId()Returns the value of thetvdbIdrecord component.tvrageId()Returns the value of thetvrageIdrecord component.Returns the value of thetwitterIdrecord component.Returns the value of thewikidataIdrecord component.Returns the value of theyoutubeIdrecord component.
-
Constructor Details
-
ExternalIds
public ExternalIds(int id, String imdbId, String wikidataId, String facebookId, String instagramId, String twitterId, Integer tvdbId, Integer tvrageId, String freebaseMid, String freebaseId, String tiktokId, String youtubeId) Creates an instance of aExternalIdsrecord class.- Parameters:
id- the value for theidrecord componentimdbId- the value for theimdbIdrecord componentwikidataId- the value for thewikidataIdrecord componentfacebookId- the value for thefacebookIdrecord componentinstagramId- the value for theinstagramIdrecord componenttwitterId- the value for thetwitterIdrecord componenttvdbId- the value for thetvdbIdrecord componenttvrageId- the value for thetvrageIdrecord componentfreebaseMid- the value for thefreebaseMidrecord componentfreebaseId- the value for thefreebaseIdrecord componenttiktokId- the value for thetiktokIdrecord componentyoutubeId- the value for theyoutubeIdrecord component
-
-
Method Details
-
hasSocialIds
public boolean hasSocialIds()Returns whether any social media identifier is present.- Returns:
trueif at least one social media id is present
-
hasDatabaseIds
public boolean hasDatabaseIds()Returns whether any external database identifier is present.- Returns:
trueif at least one external database id is present
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
imdbId
Returns the value of theimdbIdrecord component.- Returns:
- the value of the
imdbIdrecord component
-
wikidataId
Returns the value of thewikidataIdrecord component.- Returns:
- the value of the
wikidataIdrecord component
-
facebookId
Returns the value of thefacebookIdrecord component.- Returns:
- the value of the
facebookIdrecord component
-
instagramId
Returns the value of theinstagramIdrecord component.- Returns:
- the value of the
instagramIdrecord component
-
twitterId
Returns the value of thetwitterIdrecord component.- Returns:
- the value of the
twitterIdrecord component
-
tvdbId
Returns the value of thetvdbIdrecord component.- Returns:
- the value of the
tvdbIdrecord component
-
tvrageId
Returns the value of thetvrageIdrecord component.- Returns:
- the value of the
tvrageIdrecord component
-
freebaseMid
Returns the value of thefreebaseMidrecord component.- Returns:
- the value of the
freebaseMidrecord component
-
freebaseId
Returns the value of thefreebaseIdrecord component.- Returns:
- the value of the
freebaseIdrecord component
-
tiktokId
Returns the value of thetiktokIdrecord component.- Returns:
- the value of the
tiktokIdrecord component
-
youtubeId
Returns the value of theyoutubeIdrecord component.- Returns:
- the value of the
youtubeIdrecord component
-