1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/primitiveconstants/src-api1.0/api/API.java Sat Jun 14 09:50:51 2008 +0200
1.3 @@ -0,0 +1,15 @@
1.4 +package api;
1.5 +
1.6 +// BEGIN: theory.binary.constants.api
1.7 +public abstract class API {
1.8 + public static final int VERSION = 1;
1.9 +
1.10 + protected API() {
1.11 + System.err.println("Initializing version " + VERSION);
1.12 + init(API.VERSION);
1.13 + System.err.println("Properly initialized: " + this);
1.14 + }
1.15 +
1.16 + protected abstract void init(int version) throws IllegalStateException;
1.17 +}
1.18 +// END: theory.binary.constants.api
1.19 \ No newline at end of file