title: Is it possible to pass arguments into Enum values?
body: <p>Suppose I have a Enum defined something like this: </p>
  
  <pre><code>public enum Sample{
      // suppose AClass.getValue() returns an int
      A(AClass.getValue()), 
      B(AClass.getValue()),
      C(AClass.getValue());
  
      private int _value; 
  
      private Sample(int _val){
          this._value = _val; 
      }
  
      public int getVal(){
          return _value; 
      }
  </code></pre>
  
  <p>I can pull out values using <code>Sample.A</code> or <code>Sample.A.getAVal()</code> without issue. </p>
  
  <p>Now suppose that <code>AClass.getValue()</code> could take a parameter to return a possibly different particular value, eg <code>AClass.getValue(42)</code>. </p>
  
  <p>It is possible to pass arguments to a public Enum method and retrive the Enum values? In other words, could I have an Enum definition like </p>
  
  <pre><code>    public enum Sample{
          // suppose AClass.getValue() returns an int
          A(AClass.getAValue()), 
          B(AClass.getBValue()),
          C(AClass.getCValue());
  
          private int _value; 
  
          private Sample(int _val){
             this._value = _val; 
          }
  
          public int getVal(){
              return _value; 
          }
  
          public int getVal(int a){
              // somehow pull out AClass.getAValue(a)
          }
  </code></pre>
  
  <p>using <code>Sample.A.getValue(42)</code>?</p>