@Generated(value={"Immutables.generator","JCGLVersionNumberType"}) public final class JCGLVersionNumber extends Object implements JCGLVersionNumberType
A structure representing the version number of a given OpenGL implementation, broken into "major", "minor", and "micro" components.
| Modifier and Type | Class and Description |
|---|---|
static class |
JCGLVersionNumber.Builder
Builds instances of type
JCGLVersionNumber. |
| Modifier and Type | Method and Description |
|---|---|
static JCGLVersionNumber.Builder |
builder()
Creates a builder for
JCGLVersionNumber. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLVersionNumber that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
major, minor, micro. |
int |
major() |
int |
micro() |
int |
minor() |
static JCGLVersionNumber |
of(int major,
int minor,
int micro)
Construct a new immutable
JCGLVersionNumber instance. |
String |
toString()
Prints the immutable value
JCGLVersionNumber with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic int major()
major in interface JCGLVersionNumberTypepublic int minor()
minor in interface JCGLVersionNumberTypepublic int micro()
micro in interface JCGLVersionNumberTypepublic boolean equals(Object another)
JCGLVersionNumber that have equal attribute values.public int hashCode()
major, minor, micro.public String toString()
JCGLVersionNumber with attribute values.public static JCGLVersionNumber of(int major, int minor, int micro)
JCGLVersionNumber instance.major - The value for the major attributeminor - The value for the minor attributemicro - The value for the micro attributepublic static JCGLVersionNumber.Builder builder()
JCGLVersionNumber.Copyright © 2017 <code@io7m.com> http://io7m.com