I am trying to use the library dcm4che3 in Scala
My Scala code is
val item: Attributes = new Attributes
val x: Int = ints.toArray.length
val vr: VR = VR.OW
val intArray: Array[Int] = ints.toArray
item.setInt(Tag.LUTData, vr, intArray)
and I get an error
Error:(125, 10) overloaded method value setInt with alternatives:
(x$1: String,x$2: Int,x$3: org.dcm4che3.data.VR,x$4: Int*)Object <and>
(x$1: Int,x$2: org.dcm4che3.data.VR,x$3: Int*)Object
cannot be applied to (Int, org.dcm4che3.data.VR, Array[Int])
item.setInt(Tag.LUTData, vr, intArray)
I notice in the error it is asking for an Int*. The java signature is
setInt(int,org.dcm4che3.data.VR,int[])
I understand that Array[Int] is the scala equivalent of int[]. What is an Int*? Why doesn't this work?