What is the Java equivalent of these features in Scala?
trait Visitor { type X type S<:Strategy type R[v<:Visitor] = (S{type X = Visitor.this.X;type V=v})
I pass to the sign of Strategy :
public interface Strategy<V extends Visitor<?, ?, ?>, X, Y> { }
I am trying to translate the Visitor attribute into:
public interface Visitor<X, S extends Strategy<?,?, ?>, R ?????> { }
As you can see, I do not know how to understand / translate type R in Visitor . What is a similar Java equivalent?
Stuck source share