ObjIntIntArrayList { public void add(final T e, final int a, int b) { Objects.requireNonNull(e, "e must be not null"); final long packedInts = packInts(a, b); ensureCapacity(); objects[size] = e; ints[size] = packedInts; size++; } ObjIntIntArrayList(int initialCapacity); int size(); boolean addToIntsIfMatch(int index, T e, int deltaA, int deltaB); void add(final T e, final int a, int b); void clear(); void forEach(ObjIntIntConsumerOneArg<? super T, ? super A> onFile, A arg);  }
@Test(expected = NullPointerException.class) public void addShouldFailAppendNull() { ObjIntIntArrayList<Integer> list = new ObjIntIntArrayList<>(0); list.add(null, 1, 2); }
@Test(expected = IllegalArgumentException.class) public void addShouldFailAppendNegativeA() { ObjIntIntArrayList<Integer> list = new ObjIntIntArrayList<>(0); list.add(0, -1, 1); }
@Test(expected = IllegalArgumentException.class) public void addShouldFailAppendNegativeB() { ObjIntIntArrayList<Integer> list = new ObjIntIntArrayList<>(0); list.add(0, 1, -1); }