title: What is benefit from using fromValue function instead of valueOf, java enums?
body: <p>I see some programmers use in enums structure function called fromValue. What is it purpose, if we can use valueOf? For example, I found something like this:</p>
  
  <pre><code>public static FooEnum fromValue(String v) {  
      return valueOf(v);  
  }
  </code></pre>