Revisiting Effective Java in 2018 - Cloud Object Storage€¦ · Revisiting Effective Java in 2019...

Post on 24-Jun-2020

5 views 0 download

transcript

Revisiting Effective Java in 2019

Edson Yanaga Director of Developer Experience @yanaga

Edson Yanaga

@yanaga

http://developers.redhat.com/promotions/migrating-to-microservice-databases

@yanaga

Follow @yanaga on Twitter and join developers.redhat.com 4

Follow @yanaga on Twitter and join developers.redhat.com 5

Follow @yanaga on Twitter and join developers.redhat.com 6

Lambdas Streams Optionals Default methods in interfaces try-with-resources

Follow @yanaga on Twitter and join developers.redhat.com 7

Factory methods (1) try-with-resources (9) equals (10) hashCode (11) toString (12) Comparable (14)

Follow @yanaga on Twitter and join developers.redhat.com 8

Minimize mutability (17) Enums (34)

Follow @yanaga on Twitter and join developers.redhat.com 10

Functional Interfaces

Favor Strategy over Template Method

Follow @yanaga on Twitter and join developers.redhat.com 11

Functional InterfacesUnaryOperator<T> BinaryOperator<T> Predicate<T> Function<T,R> Supplier<T> Consumer<T>

Join developers.redhat.com

Feedback welcome!@yanaga

plus.google.com/+RedHat

linkedin.com/company/red-hat

youtube.com/user/RedHatVideos

facebook.com/redhatinc

twitter.com/RedHatNews

Thank you!