Record Class ImageRpc.ImageData
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.images.ImageRpc.ImageData
- Enclosing interface:
- ImageRpc
public static record ImageRpc.ImageData(String path, @Nullable ImageFormat type, String description, int width, int height, int size)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionImageData(String path, @Nullable ImageFormat type, String description, int width, int height, int size) Creates an instance of aImageDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.intheight()Returns the value of theheightrecord component.path()Returns the value of thepathrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.@Nullable ImageFormattype()Returns the value of thetyperecord component.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
ImageData
public ImageData(String path, @Nullable @Nullable ImageFormat type, String description, int width, int height, int size) Creates an instance of aImageDatarecord class.- Parameters:
path- the value for thepathrecord componenttype- the value for thetyperecord componentdescription- the value for thedescriptionrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentsize- the value for thesizerecord 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 '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-