author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:50:51 +0200 | |
changeset 8 | 82ff02d7f861 |
permissions | -rw-r--r-- |
1 package api;
3 // BEGIN: theory.binary.constants.api
4 public abstract class API {
5 public static final int VERSION = 1;
7 protected API() {
8 System.err.println("Initializing version " + VERSION);
9 init(API.VERSION);
10 System.err.println("Properly initialized: " + this);
11 }
13 protected abstract void init(int version) throws IllegalStateException;
14 }
15 // END: theory.binary.constants.api