Record Class GLVersion
java.lang.Object
java.lang.Record
dev.pfaff.glass.opengl.GLVersion
- Record Components:
major
-minor
-raw
- the version as reported byGL.glGetString(dev.pfaff.glass.opengl.enums.GLStringName)
(
VERSION
)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGLVersion
(int major, int minor, String raw, GLVersion.API api) Creates an instance of aGLVersion
record class. -
Method Summary
Modifier and TypeMethodDescriptionapi()
Returns the value of theapi
record component.final boolean
Indicates whether some other object is "equal to" this one.static GLVersion
final int
hashCode()
Returns a hash code value for this object.int
major()
Returns the value of themajor
record component.int
minor()
Returns the value of theminor
record component.raw()
Returns the value of theraw
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
ES_PREFIX
- See Also:
-
-
Constructor Details
-
Method Details
-
get
- Throws:
GLVersion.ParseException
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
major
-
minor
-
raw
-
api
Returns the value of theapi
record component.- Returns:
- the value of the
api
record component
-