com.io7m.jcanephora.core

## Class JCGLVersionNumber

- java.lang.Object
- - com.io7m.jcanephora.core.JCGLVersionNumber

- All Implemented Interfaces:
    Comparable<JCGLVersionNumber>

      public final class JCGLVersionNumber
      extends Object
      implements Comparable<JCGLVersionNumber>

  A structure representing the version number of a given OpenGL implementation, broken into "major", "minor", and "micro" components.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JCGLVersionNumber(int in_version_major, int in_version_minor, int in_version_micro)` Construct a new version number.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(JCGLVersionNumber other)`
    `boolean` | `equals(Object obj)`
    `int` | `getVersionMajor()`
    `int` | `getVersionMicro()`
    `int` | `getVersionMinor()`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### JCGLVersionNumber

          public JCGLVersionNumber(int in_version_major,
                                   int in_version_minor,
                                   int in_version_micro)

      Construct a new version number.
      Parameters:
        `in_version_major` - The major version.
        `in_version_minor` - The minor version.
        `in_version_micro` - The micro version.

  - ### Method Detail

    - #### compareTo

          public int compareTo(@Nullable
                               JCGLVersionNumber other)

      Specified by:
        `compareTo` in interface `Comparable<JCGLVersionNumber>`

    - #### equals

          public boolean equals(@Nullable
                                Object obj)

      Overrides:
        `equals` in class `Object`

    - #### getVersionMajor

          public int getVersionMajor()

      Returns:
        The major version of the implementation.

    - #### getVersionMicro

          public int getVersionMicro()

      Returns:
        The micro version of the implementation (typically zero).

    - #### getVersionMinor

          public int getVersionMinor()

      Returns:
        The minor version of the implementation.

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2016 <code@io7m.com> http://io7m.com