Search code examples
javascalainterfacetype-parameter

Scala extends Java Interface with type


I am curious how one would implement a Java Interface in Scala with the following signature;

public interface MyService<T> { ... }

Thanks!!


Solution

  • object ServiceImplementation extends MyService[String] { ... }
    

    would be an example.