Archive for Mart, 2014

Bridging multimethod interfaces to functional interfaces

Lamba expression autotyping only works on functional interfaces. A functional interface has a single abstract method. Being able to autotype other interfaces can be useful, but it doesn't come for free. Tümünü oku »

Extending Interfaces by combining Default Methods and Lambda Expressions

Java 8 Lambda Expressions and Interface Default Methods can be combined to add methods to existing interfaces. This works somewhat like traits in Scala. Tümünü oku »