Package com.io7m.calino.api
Record Class CLNImageCubeFaceDescription
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageCubeFaceDescription
- Record Components:
dataOffsetWithinSection
- 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
public record CLNImageCubeFaceDescription(long dataOffsetWithinSection, long dataSizeCompressed, long dataSizeUncompressed, int crc32Uncompressed)
extends Record
A description of a cube map face.
-
Constructor Summary
ConstructorDescriptionCLNImageCubeFaceDescription
(long dataOffsetWithinSection, long dataSizeCompressed, long dataSizeUncompressed, int crc32Uncompressed) Creates an instance of aCLNImageCubeFaceDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
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.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CLNImageCubeFaceDescription
public CLNImageCubeFaceDescription(long dataOffsetWithinSection, long dataSizeCompressed, long dataSizeUncompressed, int crc32Uncompressed) Creates an instance of aCLNImageCubeFaceDescription
record class.- Parameters:
dataOffsetWithinSection
- the value for thedataOffsetWithinSection
record componentdataSizeCompressed
- the value for thedataSizeCompressed
record componentdataSizeUncompressed
- the value for thedataSizeUncompressed
record componentcrc32Uncompressed
- the value for thecrc32Uncompressed
record component
-
-
Method Details
-
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 '=='. -
dataOffsetWithinSection
public long dataOffsetWithinSection()Returns the value of thedataOffsetWithinSection
record component.- Returns:
- the value of the
dataOffsetWithinSection
record component
-
dataSizeCompressed
public long dataSizeCompressed()Returns the value of thedataSizeCompressed
record component.- Returns:
- the value of the
dataSizeCompressed
record component
-
dataSizeUncompressed
public long dataSizeUncompressed()Returns the value of thedataSizeUncompressed
record component.- Returns:
- the value of the
dataSizeUncompressed
record component
-
crc32Uncompressed
public int crc32Uncompressed()Returns the value of thecrc32Uncompressed
record component.- Returns:
- the value of the
crc32Uncompressed
record component
-