Closed Bernardo-MG closed 6 years ago
How to mix interfaces and generics.
Example with a service (interface and implementation).
public interface Service<V extends ObjectInterface>
Example with a typed method:
public <V extends ObjectInterface> method(V value)
Example with wildcard:
public method(Iterable<? extends ObjectInterface> value)
How to mix interfaces and generics.
Example with a service (interface and implementation).
Example with a typed method:
Example with wildcard: