Archives mensuelles : juin 2017

Java 8 Predicates or how to parameterize a method with a boolean-valued function

Plan Before Java 8, we cannot pass a boolean-valued function/method as argument to another method : example of use case, consequences and workarounds How Java 8 addresses the need of passing a boolean-valued function/method as argument to another method ? We will … Continuer la lecture

Publié dans java, java 8, java8 | Un commentaire

Overriding Object’s hashcode() method

  Plan The hashCode() method : principles and simple example Brief definition of the hashCode() method  Default implementation of the hashCode() method and when override it The general contract to respect when we override the hashCode() method A simple example of … Continuer la lecture

Publié dans Non classé | Laisser un commentaire