I have a scala class:
Rts.scala
class Rts(buffer:Iterator[Tse]) extends Ts
{ //Some methods}
Now I am trying to put Tse list to the constructor of the above class from java class:
Tse tse1= new Tse(1285927200000L, 1285928100000L, 0.0);
Tse tse2 = new Tse(1285928100000L, 1285929000000L, 1.0);
Tse tse3= new Tse(1285929000000L, 1285929900000L, 2.0);
Tse tse4 = new Tse(1285929900000L, 1285930800000L, 3.0);
List<Tse> entryList = new ArrayList<Tse>();
entryList.add(tse1);
entryList.add(tse2);
entryList.add(tse3);
entryList.add(tse4);
Iterator<Tse> iterator = entryList.iterator();
Rts rts= new Rts(iterator); //compile time error
Error Summary:
The constructor Rts(Iterator<Tse>) is undefined
What is the right way to put the list to the constructor?