package Examples; import java.io.Serializable; import java.util.ArrayList; import Sequenic.T2.BaseDomain0; public class MyBaseDomain extends BaseDomain0 { public MyBaseDomain() { super(); ArrayList intdomain = new ArrayList(); intdomain.add(new Integer(0)); intdomain.add(new Integer(1)); // A domain for Integer with null: ArrayList INTdomain = new ArrayList(); // Hmm ... do I need to cast null? INTdomain.add((Integer) null); INTdomain.add(new Integer(1)); // Replacing original domains for int and Integer with the above: domain.put(Integer.TYPE, intdomain); domain.put(Integer.class, INTdomain); } }