5 package com.microsoft.z3.enumerations;
7 import java.util.HashMap;
28 private final int intValue;
36 private static class Z3_error_code_MappingHolder {
37 private static final Map<Integer, Z3_error_code> intMapping =
new HashMap<>();
40 intMapping.put(k.toInt(), k);
45 Z3_error_code k = Z3_error_code_MappingHolder.intMapping.get(v);
46 if (k !=
null)
return k;
47 throw new IllegalArgumentException(
"Illegal value " + v +
" for Z3_error_code");
50 public final int toInt() {
return this.intValue; }