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.VoidNested 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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?> layout()Returns the value of thelayoutrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.pfaff.glass.opengl.GLType.Primitive
nativeClass
-
Constructor Details
-
Short
Creates an instance of aShortrecord class.- Parameters:
layout- the value for thelayoutrecord component
-
-
Method Details
-
javaClass
- Specified by:
javaClassin interfaceGLType- Specified by:
javaClassin 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 thelayoutrecord component.
-