blob: 7fa937d1f1d506a9e8036e6d583378d6cf658edb [file] [log] [blame]
interface BusinessEntity<E extends BusinessEntity<E>> {
}
interface EntityId<E extends BusinessEntity> {
E getEntity();
}
public class MyTest {
<T extends BusinessEntity<T>> T getEntity(EntityId<T> defaultValue) {
return getEntityID(defaultValue).getEntity();
}
public <P extends EntityId<?>> P getEntityID(P defaultValue) {
return null;
}
}