Monday, June 26, 2017

Generic Interface




http://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html

The interface Predicate is an example of a generic interface. 

Generic types (such as generic interfaces) specify one or more type parameters within angle brackets (<>). 
This interface contains only one type parameter, T

When you declare or instantiate a generic type with actual type arguments, you have a parameterized type.


No comments:

Post a Comment