hi johan,

thats true. But it wont be so verbose for everybody that uses the Iterator
for just 1 type

well - the verbosity to add another type would be imho acceptable. generics
_are_ verbose, that's the cost (though i'm not that affected using scala
actually, the types are inferred by the compiler.

So yes currently my vote is stil that you just use Object
But i dont know how that works out completely for the things you use
IDataprovider again..

if it should be like you say it'll be, why not just make IDataProvider

public interface IDataProvider<T>
  extends IDetachable
{
 java.util.Iterator<Model<T>> iterator(int first, int count);
 int size();
}

and drop the model completely? that would be consequent. (kidding)


best regards, --- jan.

Reply via email to