In Java I might do this:
class MyClass { private List extends MyInterface> list; public void setList(List l) { list = l; } } <
The direct analog to
import java.util.List; List<? extends MyInterface> list;
is
import java.util.List var list : List[_ <: MyInterface] = _;
Same deal with Buffer
To answer a comment you made earler, in Java type parameters are always invariant, not covariant.