Package dev.reuss.tmdb.common.image
Record Class LogoImage
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.image.LogoImage
- Record Components:
aspectRatio- logo aspect ratiofilePath- TMDB image file pathheight- logo height in pixelsid- TMDB image idfileType- original logo file type, for example.svgor.pngvoteAverage- average image votevoteCount- image vote countwidth- logo width in pixels
- All Implemented Interfaces:
TmdbModel,Serializable
public record LogoImage(double aspectRatio, String filePath, int height, String id, String fileType, double voteAverage, int voteCount, int width)
extends Record
implements TmdbModel
Represents logo image metadata returned by TMDB.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaspectRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.fileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevoteAveragerecord component.intReturns the value of thevoteCountrecord component.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
LogoImage
public LogoImage(double aspectRatio, String filePath, int height, String id, String fileType, double voteAverage, int voteCount, int width) Creates an instance of aLogoImagerecord class.- Parameters:
aspectRatio- the value for theaspectRatiorecord componentfilePath- the value for thefilePathrecord componentheight- the value for theheightrecord componentid- the value for theidrecord componentfileType- the value for thefileTyperecord componentvoteAverage- the value for thevoteAveragerecord componentvoteCount- the value for thevoteCountrecord componentwidth- the value for thewidthrecord component
-
-
Method Details
-
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 '=='. -
aspectRatio
public double aspectRatio()Returns the value of theaspectRatiorecord component.- Returns:
- the value of the
aspectRatiorecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-
voteAverage
public double voteAverage()Returns the value of thevoteAveragerecord component.- Returns:
- the value of the
voteAveragerecord component
-
voteCount
public int voteCount()Returns the value of thevoteCountrecord component.- Returns:
- the value of the
voteCountrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-