author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Fri, 03 Apr 2020 16:32:36 +0200 | |
changeset 416 | 9ed8788a1a4e |
parent 180 | 131332825eab |
permissions | -rw-r--r-- |
1 package impl;
2 import api.API;
4 // BEGIN: theory.binary.constants.impl
5 public class Impl extends API {
6 protected void init(int version) throws IllegalStateException {
7 if (version != API.VERSION) {
8 throw new IllegalStateException("Wrong API version error!");
9 }
10 }
11 // FINISH: theory.binary.constants.impl
13 public static void main(String[] args) {
14 System.err.println("main expects version: " + API.VERSION);
15 new Impl();
16 System.err.println("done for version: " + API.VERSION);
17 }
18 }