Package com.io7m.calino.api
Record Class CLNImageCubeDescription
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageCubeDescription
- Record Components:
mipMapLevel- The mipmap levelface- The cube facedataSizeCompressed- The size of the compressed datadataOffsetWithinSection- The offset within the sectioncrc32Uncompressed- The CRC32 of the uncompressed datadataSizeUncompressed- The size 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 facedataSizeCompressed- The size of the compressed datadataOffsetWithinSection- The offset within the sectioncrc32Uncompressed- The CRC32 of the uncompressed datadataSizeUncompressed- The size of the uncompressed data
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CLNImageCubeDescription>
-
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 '=='. -
mipMapLevel
public int mipMapLevel()Returns the value of themipMapLevelrecord component.- Specified by:
mipMapLevelin interfaceCLNImageDescriptionType- Returns:
- the value of the
mipMapLevelrecord component
-
face
Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord 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
-