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
ConstructorDescriptionCLNImageCubeMipMapDeclaration
(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 TypeMethodDescriptionint
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.Returns the value of thexNegative
record component.Returns the value of thexPositive
record component.Returns the value of theyNegative
record component.Returns the value of theyPositive
record component.Returns the value of thezNegative
record component.Returns the value of thezPositive
record 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:
compareTo
in 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 themipMapLevel
record component.- Returns:
- the value of the
mipMapLevel
record component
-
xPositive
Returns the value of thexPositive
record component.- Returns:
- the value of the
xPositive
record component
-
xNegative
Returns the value of thexNegative
record component.- Returns:
- the value of the
xNegative
record component
-
yPositive
Returns the value of theyPositive
record component.- Returns:
- the value of the
yPositive
record component
-
yNegative
Returns the value of theyNegative
record component.- Returns:
- the value of the
yNegative
record component
-
zPositive
Returns the value of thezPositive
record component.- Returns:
- the value of the
zPositive
record component
-
zNegative
Returns the value of thezNegative
record component.- Returns:
- the value of the
zNegative
record component
-