T
Twisted
public abstract class Vector<S extends Scalar> {
public abstract <T extends Scalar> Vector<T> add (Vector<? extends T>
y);
}
What I additionally want to specify, somehow, is that S extends T. In
fact T should extend Scalar and be the last common ancestor of S and
whatever the right-hand ? turns out to be.
How??
public abstract <T extends Scalar> Vector<T> add (Vector<? extends T>
y);
}
What I additionally want to specify, somehow, is that S extends T. In
fact T should extend Scalar and be the last common ancestor of S and
whatever the right-hand ? turns out to be.
How??