marcinmoskala10/05/2019, 4:19 PM
karelpeeters10/05/2019, 7:15 PM
wasyl10/05/2019, 7:25 PM
(https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html#jls-8.4.4). Nothing is said about enclosing class or interface, so I’d go for the option that generic function are the ones that have an explicit type parameter.
A method is generic if it declares one or more type variables.
marcinmoskala10/05/2019, 9:06 PM