Package com.io7m.calino.api
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
ConstructorDescriptionCLNCompressionMethodCustom
(String descriptor, long compressionSectionIdentifier, int blockSizeX, int blockSizeY, int blockAlignment) A custom compression method. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theblockAlignment
record component.int
Returns the value of theblockSizeX
record component.int
Returns the value of theblockSizeY
record component.long
Returns the value of thecompressionSectionIdentifier
record component.Returns the value of thedescriptor
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.final String
toString()
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
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 '=='. -
descriptor
Returns the value of thedescriptor
record component.- Specified by:
descriptor
in interfaceCLNDescribableType
- Returns:
- the value of the
descriptor
record component
-
compressionSectionIdentifier
public long compressionSectionIdentifier()Returns the value of thecompressionSectionIdentifier
record component.- Specified by:
compressionSectionIdentifier
in interfaceCLNCompressionMethodType
- Returns:
- the value of the
compressionSectionIdentifier
record component
-
blockSizeX
public int blockSizeX()Returns the value of theblockSizeX
record component.- Specified by:
blockSizeX
in interfaceCLNCompressionMethodType
- Returns:
- the value of the
blockSizeX
record component
-
blockSizeY
public int blockSizeY()Returns the value of theblockSizeY
record component.- Specified by:
blockSizeY
in interfaceCLNCompressionMethodType
- Returns:
- the value of the
blockSizeY
record component
-
blockAlignment
public int blockAlignment()Returns the value of theblockAlignment
record component.- Specified by:
blockAlignment
in interfaceCLNCompressionMethodType
- Returns:
- the value of the
blockAlignment
record component
-