6. Guava
3/ Apache Collection JDK
4/ Java5
2/ Apache Collection Library warning
1/
It does not use generics, which is a problem for
us as we hate to get compilation warnings from
our code.
15. Vistor
fields
1/ null reference
2/ static fields
3/ array array
java.lang.instrument.getObjectSize
The result may include some or all of
the object's overhead
Vistor
call
DFS
16.
17. Optional
"I call it my billion-dollar mistake." - Sir C. A. R. Hoare
Optional API API
JVM
18. It should be considered that the approach has been
developed in terms of writing a new application, rather
than maintaining an existing one.
—Stephen Colebourne
Optional
• Optional Field
• Optional API
• Optional getter
• setter Optional
Domain null null
Maybe
23. sorted copy, Google
Performance note [immutableSortedCopy]:
According to our benchmarking on Open JDK 7, this method is the
most efficient way to make a sorted copy of a collection.
no
40. Iterables & FluentIterable
At Google we work with very large quantities of data, which may
be too large to fit in memory, but which can be traversed from
beginning to end in the course of some computation.
remove concat cycle
Iterables lazy
java8 Stream