author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 21:30:10 +0100 | |
changeset 409 | 40cabcdcd2be |
permissions | -rw-r--r-- |
jtulach@8 | 1 |
package api; |
jtulach@8 | 2 |
|
jtulach@8 | 3 |
// BEGIN: theory.binary.constants.api |
jtulach@8 | 4 |
public abstract class API { |
jtulach@8 | 5 |
public static final int VERSION = 1; |
jtulach@8 | 6 |
|
jtulach@8 | 7 |
protected API() { |
jtulach@8 | 8 |
System.err.println("Initializing version " + VERSION); |
jtulach@8 | 9 |
init(API.VERSION); |
jtulach@8 | 10 |
System.err.println("Properly initialized: " + this); |
jtulach@8 | 11 |
} |
jtulach@8 | 12 |
|
jtulach@8 | 13 |
protected abstract void init(int version) throws IllegalStateException; |
jtulach@8 | 14 |
} |
jtulach@8 | 15 |
// END: theory.binary.constants.api |