I've got two overloaded constructor methods in a class (from UJMP package):
DefaultSparseIntMatrix(long... size)
and
DefaultSparseIntMatrix(int maximumNumberOfEntries, long... size)
I want to call the second one with the int, but the compiler gives this error:
reference to DefaultSparseIntMatrix is ambiguous
This is how I call it right now:
Matrix m = new DefaultSparseIntMatrix((int) (vertices.length*50), (long) vertices.length, (long) vertices.length);
How can I force the first parameter to be an int, and not a long?
I know the other way around, just cast to a (long)
, but I need it to be an int.