Record Class CLNCompressionMethodCustom
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNCompressionMethodCustom
- Record Components:
descriptor- The compression descriptorcompressionSectionIdentifier- The identifier of the section containing data required to decompress datablockSizeX- The size of a compressed block on the X axisblockSizeY- The size of a compressed block on the Y axisblockAlignment- The required alignment of a compressed block
- All Implemented Interfaces:
CLNCompressionMethodType, CLNDescribableType
public record CLNCompressionMethodCustom(String descriptor, long compressionSectionIdentifier, int blockSizeX, int blockSizeY, int blockAlignment)
extends Record
implements CLNCompressionMethodType
A custom compression method.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNCompressionMethodCustom(String descriptor, long compressionSectionIdentifier, int blockSizeX, int blockSizeY, int blockAlignment) A custom compression method. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockAlignmentrecord component.intReturns the value of theblockSizeXrecord component.intReturns the value of theblockSizeYrecord component.longReturns the value of thecompressionSectionIdentifierrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNCompressionMethodCustom
public CLNCompressionMethodCustom(String descriptor, long compressionSectionIdentifier, int blockSizeX, int blockSizeY, int blockAlignment) A custom compression method.- Parameters:
descriptor- The compression descriptorcompressionSectionIdentifier- The identifier of the section containing data required to decompress datablockSizeX- The size of a compressed block on the X axisblockSizeY- The size of a compressed block on the Y axisblockAlignment- The required alignment of a compressed block
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
descriptor
Returns the value of thedescriptorrecord component.- Specified by:
descriptorin interfaceCLNDescribableType- Returns:
- the value of the
descriptorrecord component
-
compressionSectionIdentifier
public long compressionSectionIdentifier()Returns the value of thecompressionSectionIdentifierrecord component.- Specified by:
compressionSectionIdentifierin interfaceCLNCompressionMethodType- Returns:
- the value of the
compressionSectionIdentifierrecord component
-
blockSizeX
public int blockSizeX()Returns the value of theblockSizeXrecord component.- Specified by:
blockSizeXin interfaceCLNCompressionMethodType- Returns:
- the value of the
blockSizeXrecord component
-
blockSizeY
public int blockSizeY()Returns the value of theblockSizeYrecord component.- Specified by:
blockSizeYin interfaceCLNCompressionMethodType- Returns:
- the value of the
blockSizeYrecord component
-
blockAlignment
public int blockAlignment()Returns the value of theblockAlignmentrecord component.- Specified by:
blockAlignmentin interfaceCLNCompressionMethodType- Returns:
- the value of the
blockAlignmentrecord component
-