title: How to name a function that returns a HashMap in Java?
body: <p>I know <a href="https://stackoverflow.com/questions/6659455/how-to-name-a-hashmap-in-java">How to name a HashMap in Java?</a>, but what is the best name for the function that does the work of building and assigning the keys? A function that returns <code>Map&lt;State, County&gt; countiesByState</code> could be named</p>
  
  <pre><code>sortToState(myCounties)
  mapByState(myCounties)
  getCountiesByStateMap(myCounties)
  getCountiesByState(myCounties)
  getMapByState(myCounties)
  </code></pre>