Package com.io7m.calino.api
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 datadataSizeCompressed
- The size of the supercompressed datadataSizeUncompressed
- The size of the uncompressed 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
ConstructorDescriptionCLNImage2DDescription
(int mipMapLevel, long dataOffsetWithinSection, long dataSizeUncompressed, long dataSizeCompressed, int crc32Uncompressed) Creates an instance of aCLNImage2DDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CLNImage2DDescription other) int
Returns the value of thecrc32Uncompressed
record component.long
Returns the value of thedataOffsetWithinSection
record component.long
Returns the value of thedataSizeCompressed
record component.long
Returns the value of thedataSizeUncompressed
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themipMapLevel
record component.final String
toString()
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 aCLNImage2DDescription
record class.- Parameters:
mipMapLevel
- the value for themipMapLevel
record componentdataOffsetWithinSection
- the value for thedataOffsetWithinSection
record componentdataSizeUncompressed
- the value for thedataSizeUncompressed
record componentdataSizeCompressed
- the value for thedataSizeCompressed
record componentcrc32Uncompressed
- the value for thecrc32Uncompressed
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CLNImage2DDescription>
-
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 themipMapLevel
record component.- Specified by:
mipMapLevel
in interfaceCLNImageDescriptionType
- Returns:
- the value of the
mipMapLevel
record component
-
dataOffsetWithinSection
public long dataOffsetWithinSection()Returns the value of thedataOffsetWithinSection
record component.- Specified by:
dataOffsetWithinSection
in interfaceCLNImageDescriptionType
- Returns:
- the value of the
dataOffsetWithinSection
record component
-
dataSizeUncompressed
public long dataSizeUncompressed()Returns the value of thedataSizeUncompressed
record component.- Specified by:
dataSizeUncompressed
in interfaceCLNImageDescriptionType
- Returns:
- the value of the
dataSizeUncompressed
record component
-
dataSizeCompressed
public long dataSizeCompressed()Returns the value of thedataSizeCompressed
record component.- Specified by:
dataSizeCompressed
in interfaceCLNImageDescriptionType
- Returns:
- the value of the
dataSizeCompressed
record component
-
crc32Uncompressed
public int crc32Uncompressed()Returns the value of thecrc32Uncompressed
record component.- Specified by:
crc32Uncompressed
in interfaceCLNImageDescriptionType
- Returns:
- the value of the
crc32Uncompressed
record component
-