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