Package com.io7m.calino.api
Record Class CLNImageCubeMipMapDeclaration
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageCubeMipMapDeclaration
- Record Components:
mipMapLevel- The mipmap levelxPositive- The positive X facexNegative- The negative X faceyPositive- The positive Y faceyNegative- The negative Y facezPositive- The positive Z facezNegative- The negative Z face
- All Implemented Interfaces:
Comparable<CLNImageCubeMipMapDeclaration>
public record CLNImageCubeMipMapDeclaration(int mipMapLevel, CLNImageCubeFaceDeclaration xPositive, CLNImageCubeFaceDeclaration xNegative, CLNImageCubeFaceDeclaration yPositive, CLNImageCubeFaceDeclaration yNegative, CLNImageCubeFaceDeclaration zPositive, CLNImageCubeFaceDeclaration zNegative)
extends Record
implements Comparable<CLNImageCubeMipMapDeclaration>
The declaration of a single cube mipmap.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImageCubeMipMapDeclaration(int mipMapLevel, CLNImageCubeFaceDeclaration xPositive, CLNImageCubeFaceDeclaration xNegative, CLNImageCubeFaceDeclaration yPositive, CLNImageCubeFaceDeclaration yNegative, CLNImageCubeFaceDeclaration zPositive, CLNImageCubeFaceDeclaration zNegative) The declaration of a single cube mipmap. -
Method Summary
Modifier and TypeMethodDescriptionintfinal 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.final StringtoString()Returns a string representation of this record class.Returns the value of thexNegativerecord component.Returns the value of thexPositiverecord component.Returns the value of theyNegativerecord component.Returns the value of theyPositiverecord component.Returns the value of thezNegativerecord component.Returns the value of thezPositiverecord component.
-
Constructor Details
-
CLNImageCubeMipMapDeclaration
public CLNImageCubeMipMapDeclaration(int mipMapLevel, CLNImageCubeFaceDeclaration xPositive, CLNImageCubeFaceDeclaration xNegative, CLNImageCubeFaceDeclaration yPositive, CLNImageCubeFaceDeclaration yNegative, CLNImageCubeFaceDeclaration zPositive, CLNImageCubeFaceDeclaration zNegative) The declaration of a single cube mipmap.- Parameters:
mipMapLevel- The mipmap levelxPositive- The positive X facexNegative- The negative X faceyPositive- The positive Y faceyNegative- The negative Y facezPositive- The positive Z facezNegative- The negative Z face
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CLNImageCubeMipMapDeclaration>
-
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.- Returns:
- the value of the
mipMapLevelrecord component
-
xPositive
Returns the value of thexPositiverecord component.- Returns:
- the value of the
xPositiverecord component
-
xNegative
Returns the value of thexNegativerecord component.- Returns:
- the value of the
xNegativerecord component
-
yPositive
Returns the value of theyPositiverecord component.- Returns:
- the value of the
yPositiverecord component
-
yNegative
Returns the value of theyNegativerecord component.- Returns:
- the value of the
yNegativerecord component
-
zPositive
Returns the value of thezPositiverecord component.- Returns:
- the value of the
zPositiverecord component
-
zNegative
Returns the value of thezNegativerecord component.- Returns:
- the value of the
zNegativerecord component
-