Record Class CLNImage2DMipMapDeclaration
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImage2DMipMapDeclaration
- Record Components:
mipMapLevel- The mipmap levelsizeCompressed- The size of the supercompressed data in octetssizeUncompressed- The size of the uncompressed data in octetscrc32- The CRC32 checksum of the uncompressed data
- All Implemented Interfaces:
Comparable<CLNImage2DMipMapDeclaration>
public record CLNImage2DMipMapDeclaration(int mipMapLevel, long sizeCompressed, long sizeUncompressed, int crc32)
extends Record
implements Comparable<CLNImage2DMipMapDeclaration>
The declaration of a single mipmap.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImage2DMipMapDeclaration(int mipMapLevel, long sizeCompressed, long sizeUncompressed, int crc32) Creates an instance of aCLNImage2DMipMapDeclarationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintintcrc32()Returns the value of thecrc32record 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.longReturns the value of thesizeCompressedrecord component.longReturns the value of thesizeUncompressedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNImage2DMipMapDeclaration
public CLNImage2DMipMapDeclaration(int mipMapLevel, long sizeCompressed, long sizeUncompressed, int crc32) Creates an instance of aCLNImage2DMipMapDeclarationrecord class.- Parameters:
mipMapLevel- the value for themipMapLevelrecord componentsizeCompressed- the value for thesizeCompressedrecord componentsizeUncompressed- the value for thesizeUncompressedrecord componentcrc32- the value for thecrc32record component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CLNImage2DMipMapDeclaration>
-
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.- Returns:
- the value of the
mipMapLevelrecord component
-
sizeCompressed
public long sizeCompressed()Returns the value of thesizeCompressedrecord component.- Returns:
- the value of the
sizeCompressedrecord component
-
sizeUncompressed
public long sizeUncompressed()Returns the value of thesizeUncompressedrecord component.- Returns:
- the value of the
sizeUncompressedrecord component
-
crc32
-