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-trueif 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
ConstructorsConstructorDescriptionCLNImageProcessorRequest(Path file, boolean premultiplyAlpha, CLNByteOrder targetByteOrder, Optional<CLNImageLayoutConversion> layoutConversion, Optional<CLNImageMipMapFilter> generateMipMaps) The type of image processor requests. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.Returns the value of thegenerateMipMapsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelayoutConversionrecord component.booleanReturns the value of thepremultiplyAlpharecord component.Returns the value of thetargetByteOrderrecord component.final StringtoString()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-trueif 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 thefilerecord component.- Returns:
- the value of the
filerecord component
-
premultiplyAlpha
public boolean premultiplyAlpha()Returns the value of thepremultiplyAlpharecord component.- Returns:
- the value of the
premultiplyAlpharecord component
-
targetByteOrder
Returns the value of thetargetByteOrderrecord component.- Returns:
- the value of the
targetByteOrderrecord component
-
layoutConversion
Returns the value of thelayoutConversionrecord component.- Returns:
- the value of the
layoutConversionrecord component
-
generateMipMaps
Returns the value of thegenerateMipMapsrecord component.- Returns:
- the value of the
generateMipMapsrecord component
-