Class APIUtil.APIVersion

  • Enclosing class:
    APIUtil

    public static class APIUtil.APIVersion
    extends java.lang.Object
    A data class for API versioning information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String implementation
      Returns the API implementation-specific versioning information.
      int major
      Returns the API major version.
      int minor
      Returns the API minor version.
      java.lang.String revision
      Returns the API revision.
    • Constructor Summary

      Constructors 
      Constructor Description
      APIVersion​(int major, int minor)  
      APIVersion​(int major, int minor, java.lang.String revision, java.lang.String implementation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • major

        public final int major
        Returns the API major version.
      • minor

        public final int minor
        Returns the API minor version.
      • revision

        @Nullable
        public final java.lang.String revision
        Returns the API revision. May be null.
      • implementation

        @Nullable
        public final java.lang.String implementation
        Returns the API implementation-specific versioning information. May be null.
    • Constructor Detail

      • APIVersion

        public APIVersion​(int major,
                          int minor)
      • APIVersion

        public APIVersion​(int major,
                          int minor,
                          @Nullable
                          java.lang.String revision,
                          @Nullable
                          java.lang.String implementation)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object