samples/primitiveconstants/src-api1.0/api/API.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 03 Apr 2020 16:32:36 +0200
changeset 416 9ed8788a1a4e
permissions -rw-r--r--
Using HTTPS to download the libraries
     1 package api;
     2 
     3 // BEGIN: theory.binary.constants.api
     4 public abstract class API {
     5     public static final int VERSION = 1;
     6 
     7     protected API() {
     8         System.err.println("Initializing version " + VERSION);
     9         init(API.VERSION);
    10         System.err.println("Properly initialized: " + this);
    11     }
    12 
    13     protected abstract void init(int version) throws IllegalStateException;
    14 }
    15 // END: theory.binary.constants.api