title: When is it good to use Enum in Android?
body: <p>I saw the video(<a href="https://www.youtube.com/watch?v=Hzs6OBcvNQE" rel="nofollow">https://www.youtube.com/watch?v=Hzs6OBcvNQE</a>) posted from google about price of enum and I'm convinced that enum cost more and has performance issue.</p>
  
  <p>However, what about when I need to contain multiple information in an enum? Do I have to create intdef and stringdef to map the message?</p>
  
  <p>Ie.</p>
  
  <pre><code>public enum Error{
      NETWORK(1, "Network error!"),
      STACK_OVER_FLOW(2, "Stack over flow error!");
      final int mValue;
      final String mMessage;
  
      Error(int value, String message){
          mValue = value;
          mMessage = message;
      }
  
      public void getMessage(){
          return mMessage;
      }
  
      public void getValue(){
          return mValue
      }
  }
  </code></pre>