Package dev.reuss.tmdb.common.image
Record Class CollectionImages
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.image.CollectionImages
- Record Components:
id- collection idbackdrops- backdrop imagesposters- poster images
public record CollectionImages(int id, List<TmdbImage> backdrops, List<TmdbImage> posters)
extends Record
Images for a TMDB collection.
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionImages(int id, List<TmdbImage> backdrops, List<TmdbImage> posters) Creates an instance of aCollectionImagesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackdropsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanintid()Returns the value of theidrecord component.intbooleanisEmpty()intposters()Returns the value of thepostersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isEmpty
public boolean isEmpty() -
hasImages
public boolean hasImages() -
hasBackdrops
public boolean hasBackdrops() -
hasPosters
public boolean hasPosters() -
backdropCount
public int backdropCount() -
posterCount
public int posterCount() -
imageCount
public int imageCount() -
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
-
backdrops
Returns the value of thebackdropsrecord component.- Returns:
- the value of the
backdropsrecord component
-
posters
Returns the value of thepostersrecord component.- Returns:
- the value of the
postersrecord component
-