samples/primitiveconstants/src-api2.0/api/API.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
     1 package api;
     2 
     3 public abstract class API {
     4     // BEGIN: theory.binary.constants.api2
     5     public static final int VERSION = 2;
     6     // END: theory.binary.constants.api2
     7 
     8     protected API() {
     9         System.err.println("Initializing version " + VERSION);
    10         init(API.VERSION);
    11         System.err.println("Properly initialized: " + this);
    12     }
    13 
    14     protected abstract void init(int version) throws IllegalStateException;
    15 }