Record Class CLNImage2DDescription
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImage2DDescription
- Record Components:
mipMapLevel- The mipmap leveldataOffsetWithinSection- The offset of the data from the start of the section datadataSizeUncompressed- The size of the uncompressed datadataSizeCompressed- The size of the supercompressed datacrc32Uncompressed- The CRC32 of the uncompressed data
- All Implemented Interfaces:
CLNImageDescriptionType, Comparable<CLNImage2DDescription>
public record CLNImage2DDescription(int mipMapLevel, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed)
extends Record
implements CLNImageDescriptionType, Comparable<CLNImage2DDescription>
A description of a single 2D image.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImage2DDescription(int mipMapLevel, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) Creates an instance of aCLNImage2DDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CLNImage2DDescription other) intReturns 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.intReturns the value of themipMapLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNImage2DDescription
public CLNImage2DDescription(int mipMapLevel, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) Creates an instance of aCLNImage2DDescriptionrecord class.- Parameters:
mipMapLevel- the value for themipMapLevelrecord 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<CLNImage2DDescription>
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
mipMapLevel
public int mipMapLevel()Returns the value of themipMapLevelrecord component.- Specified by:
mipMapLevelin interfaceCLNImageDescriptionType- Returns:
- the value of the
mipMapLevelrecord 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
-