val map = GetMap();
does not.As the reader, this situation would be analogous to looking up the what map is, assuming it was declared earlier ... is a datamember etc. something that might as well arise when typing..
private HashMap<Integer, String> map ;
then 30 lines later this.map = getMap();
You would have to check javadocs or function header some timeJava also lacks properties, which results in boilerplate getter/setters if you want to follow idiomatic convention (you could make all the member variables public, but your coworkers would probably shun you).
Where Property defines a .get() and a .set();
However, getters and setters are generally a code smell. It's better to be telling objects to do things rather than ask them for information. Modern Serialization & Injection frameworks no longer require getters/setters.
HashMap<String,ArrayList<String>> map = new HashMap<>();
in Java 7 http://docs.oracle.com/javase/tutorial/java/generics/gentype...
But I fail to understand how type inference (like that seen in Scala, C# etc... doesn't clean up the verbose)
for example,
versus The latter conveys just as much information