Package com.io7m.calino.imageproc.api
Record Class CLNImageProcessorRequest
java.lang.Object
java.lang.Record
com.io7m.calino.imageproc.api.CLNImageProcessorRequest
- Record Components:
file
- The input filepremultiplyAlpha
-true
if images should be alpha premultipliedtargetByteOrder
- The target byte orderlayoutConversion
- The target image layoutgenerateMipMaps
- If non-empty, mipmaps will be generated using this filter
public record CLNImageProcessorRequest(Path file, boolean premultiplyAlpha, CLNByteOrder targetByteOrder, Optional<CLNImageLayoutConversion> layoutConversion, Optional<CLNImageMipMapFilter> generateMipMaps)
extends Record
The type of image processor requests.
-
Constructor Summary
ConstructorDescriptionCLNImageProcessorRequest
(Path file, boolean premultiplyAlpha, CLNByteOrder targetByteOrder, Optional<CLNImageLayoutConversion> layoutConversion, Optional<CLNImageMipMapFilter> generateMipMaps) The type of image processor requests. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.Returns the value of thegenerateMipMaps
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelayoutConversion
record component.boolean
Returns the value of thepremultiplyAlpha
record component.Returns the value of thetargetByteOrder
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CLNImageProcessorRequest
public CLNImageProcessorRequest(Path file, boolean premultiplyAlpha, CLNByteOrder targetByteOrder, Optional<CLNImageLayoutConversion> layoutConversion, Optional<CLNImageMipMapFilter> generateMipMaps) The type of image processor requests.- Parameters:
file
- The input filepremultiplyAlpha
-true
if images should be alpha premultipliedtargetByteOrder
- The target byte orderlayoutConversion
- The target image layoutgenerateMipMaps
- If non-empty, mipmaps will be generated using this filter
-
-
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 '=='. -
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-
premultiplyAlpha
public boolean premultiplyAlpha()Returns the value of thepremultiplyAlpha
record component.- Returns:
- the value of the
premultiplyAlpha
record component
-
targetByteOrder
Returns the value of thetargetByteOrder
record component.- Returns:
- the value of the
targetByteOrder
record component
-
layoutConversion
Returns the value of thelayoutConversion
record component.- Returns:
- the value of the
layoutConversion
record component
-
generateMipMaps
Returns the value of thegenerateMipMaps
record component.- Returns:
- the value of the
generateMipMaps
record component
-