Record Class GLType.Primitive.Short
java.lang.Object
java.lang.Record
dev.pfaff.glass.opengl.GLType.Primitive.Short
- All Implemented Interfaces:
GLType
,GLType.Primitive
- Enclosing interface:
GLType.Primitive
public static record GLType.Primitive.Short(MemoryLayout layout)
extends Record
implements GLType.Primitive
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.glass.opengl.GLType
GLType.Enum<T extends GLEnum>, GLType.Pointer, GLType.PointerInt, GLType.Primitive, GLType.Void
Nested classes/interfaces inherited from interface dev.pfaff.glass.opengl.GLType.Primitive
GLType.Primitive.Boolean, GLType.Primitive.Byte, GLType.Primitive.Char, GLType.Primitive.Double, GLType.Primitive.Float, GLType.Primitive.Int, GLType.Primitive.Long, GLType.Primitive.Short
-
Field Summary
Fields inherited from interface dev.pfaff.glass.opengl.GLType
POINTER_INT, VOID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Class
<?> layout()
Returns the value of thelayout
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.glass.opengl.GLType.Primitive
nativeClass
-
Constructor Details
-
Short
Creates an instance of aShort
record class.- Parameters:
layout
- the value for thelayout
record component
-
-
Method Details
-
javaClass
- Specified by:
javaClass
in interfaceGLType
- Specified by:
javaClass
in interfaceGLType.Primitive
- Returns:
- the class used in the public-facing Java API.
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object)
. -
layout
Returns the value of thelayout
record component.
-