Use class instead of bean.
Use class instead of bean.

A class should only be called 'bean', if:

* all properties are private (use getters/setters)
* it implements the Serializable interface
* it has a public default constructor

See: http://stackoverflow.com/questions/3295496/what-is-a-javabean-exactly

rbible/java8-tutorial,houssoli/java8-tutorial,winterbe/java8-tutorial,wangtaicheng/java8-tutorial,wangtaicheng/java8-tutorial,rbible/java8-tutorial,winterbe/java8-tutorial,houssoli/java8-tutorial