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 aImageData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.path()
Returns the value of thepath
record component.int
size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.@Nullable ImageFormat
type()
Returns the value of thetype
record component.int
width()
Returns the value of thewidth
record component.
-
Constructor Details
-
ImageData
public ImageData(String path, @Nullable @Nullable ImageFormat type, String description, int width, int height, int size) Creates an instance of aImageData
record class.- Parameters:
path
- the value for thepath
record componenttype
- the value for thetype
record componentdescription
- the value for thedescription
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record componentsize
- the value for thesize
record 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 thepath
record component.- Returns:
- the value of the
path
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-