Record Class CLNImageCubeDescription
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageCubeDescription
- Record Components:
mipMapLevel- The mipmap levelface- The cube facedataOffsetWithinSection- The offset within the sectiondataSizeUncompressed- The size of the uncompressed datadataSizeCompressed- The size of the compressed datacrc32Uncompressed- The CRC32 of the uncompressed data
- All Implemented Interfaces:
CLNImageDescriptionType, Comparable<CLNImageCubeDescription>
public record CLNImageCubeDescription(int mipMapLevel, CLNCubeFace face, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed)
extends Record
implements CLNImageDescriptionType, Comparable<CLNImageCubeDescription>
A description of a single cube face image.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImageCubeDescription(int mipMapLevel, CLNCubeFace face, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) A description of a single cube face image. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CLNImageCubeDescription 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.face()Returns the value of thefacerecord component.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
-
CLNImageCubeDescription
public CLNImageCubeDescription(int mipMapLevel, CLNCubeFace face, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) A description of a single cube face image.- Parameters:
mipMapLevel- The mipmap levelface- The cube facedataOffsetWithinSection- The offset within the sectiondataSizeUncompressed- The size of the uncompressed datadataSizeCompressed- The size of the compressed datacrc32Uncompressed- The CRC32 of the uncompressed data
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CLNImageCubeDescription>
-
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. -
mipMapLevel
public int mipMapLevel()Returns the value of themipMapLevelrecord component.- Specified by:
mipMapLevelin interfaceCLNImageDescriptionType- Returns:
- the value of the
mipMapLevelrecord component
-
face
-
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
-