you can wrap your Object and int in a value object:
check it:
public class ValueObject {
private Object obj;
private int first;
private int second;
public ValueObject(Object obj, int first, int second) {
this.obj = obj;
this.first = first;
this.second = second;
}
public Object getObject() {
return object;
}
public int getFirst() {
return first;
}
public int getSecond() {
return second;
}
}