Package com.io7m.calino.api
Record Class CLNImageArrayDescription
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageArrayDescription
- Record Components:
mipMapLevel- The mipmap levellayer- The layerdataOffsetWithinSection- The offset of the data from the start of the section datadataSizeCompressed- The size of the supercompressed datadataSizeUncompressed- The size of the uncompressed datacrc32Uncompressed- The CRC32 of the uncompressed data
- All Implemented Interfaces:
CLNImageDescriptionType,Comparable<CLNImageArrayDescription>
public record CLNImageArrayDescription(int mipMapLevel, int layer, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed)
extends Record
implements CLNImageDescriptionType, Comparable<CLNImageArrayDescription>
A description of a single array image.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImageArrayDescription(int mipMapLevel, int layer, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) Creates an instance of aCLNImageArrayDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintintReturns the value of thecrc32Uncompressedrecord component.longReturns the value of thedataOffsetWithinSectionrecord component.longReturns the value of thedataSizeCompressedrecord component.longReturns the value of thedataSizeUncompressedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlayer()Returns the value of thelayerrecord component.intReturns the value of themipMapLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNImageArrayDescription
public CLNImageArrayDescription(int mipMapLevel, int layer, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) Creates an instance of aCLNImageArrayDescriptionrecord class.- Parameters:
mipMapLevel- the value for themipMapLevelrecord componentlayer- the value for thelayerrecord componentdataOffsetWithinSection- the value for thedataOffsetWithinSectionrecord componentdataSizeUncompressed- the value for thedataSizeUncompressedrecord componentdataSizeCompressed- the value for thedataSizeCompressedrecord componentcrc32Uncompressed- the value for thecrc32Uncompressedrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CLNImageArrayDescription>
-
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. All components in this record class are compared with '=='. -
mipMapLevel
public int mipMapLevel()Returns the value of themipMapLevelrecord component.- Specified by:
mipMapLevelin interfaceCLNImageDescriptionType- Returns:
- the value of the
mipMapLevelrecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
dataOffsetWithinSection
public long dataOffsetWithinSection()Returns the value of thedataOffsetWithinSectionrecord component.- Specified by:
dataOffsetWithinSectionin interfaceCLNImageDescriptionType- Returns:
- the value of the
dataOffsetWithinSectionrecord component
-
dataSizeUncompressed
public long dataSizeUncompressed()Returns the value of thedataSizeUncompressedrecord component.- Specified by:
dataSizeUncompressedin interfaceCLNImageDescriptionType- Returns:
- the value of the
dataSizeUncompressedrecord component
-
dataSizeCompressed
public long dataSizeCompressed()Returns the value of thedataSizeCompressedrecord component.- Specified by:
dataSizeCompressedin interfaceCLNImageDescriptionType- Returns:
- the value of the
dataSizeCompressedrecord component
-
crc32Uncompressed
public int crc32Uncompressed()Returns the value of thecrc32Uncompressedrecord component.- Specified by:
crc32Uncompressedin interfaceCLNImageDescriptionType- Returns:
- the value of the
crc32Uncompressedrecord component
-