Record Class ImageUtilsServiceLocal.ImageInfo
java.lang.Object
java.lang.Record
com.priint.pubserverapi.imageutils.ImageUtilsServiceLocal.ImageInfo
- Enclosing interface:
- ImageUtilsServiceLocal
public static record ImageUtilsServiceLocal.ImageInfo(int heightPixels, int widthPixels, int colorDepth, double dpi)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionImageInfo(int heightPixels, int widthPixels, int colorDepth, double dpi) Creates an instance of aImageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolorDepthrecord component.doubledpi()Returns the value of thedpirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theheightPixelsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewidthPixelsrecord component.
-
Constructor Details
-
ImageInfo
public ImageInfo(int heightPixels, int widthPixels, int colorDepth, double dpi) Creates an instance of aImageInforecord class.- Parameters:
heightPixels- the value for theheightPixelsrecord componentwidthPixels- the value for thewidthPixelsrecord componentcolorDepth- the value for thecolorDepthrecord componentdpi- the value for thedpirecord 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. All components in this record class are compared with '=='. -
heightPixels
public int heightPixels()Returns the value of theheightPixelsrecord component.- Returns:
- the value of the
heightPixelsrecord component
-
widthPixels
public int widthPixels()Returns the value of thewidthPixelsrecord component.- Returns:
- the value of the
widthPixelsrecord component
-
colorDepth
public int colorDepth()Returns the value of thecolorDepthrecord component.- Returns:
- the value of the
colorDepthrecord component
-
dpi
public double dpi()Returns the value of thedpirecord component.- Returns:
- the value of the
dpirecord component
-