by haasted · 15y ago · 0 comments
Using static imports to import the newHashMap() method can make the statement even shorter :
final Map<String, Map<String, Integer>> lookup = newHashMap();
This serves to make the code far more readable. Map<String, Map<String, Integer>> lookup = Cf.hashMap();
Which is as short and also doesn't require static imports.Bolts are the state of art FP library for java.
https://bitbucket.org/stepancheg/bolts/src/tip/src/main/java... some examples in tests
No idea about the recent development in fj, they probably made some improvements in the meantime, too.