title: getting Value from scala enumeration
body: <p>say i have enumeration like this</p>
  
  <pre><code>object SimpleEnum extends Enumeration{
   val ONE = Value(1)
   val TWO = Value(2)
   val THREE = Value(3)
   etc...
  }
  </code></pre>
  
  <p>also i've a class which i want to be extending Ordered[SimpleEnum] </p>
  
  <pre><code>class SimpleClass(se: SimpleEnum) extends Ordered[SimpleEnum] {
    override def compare(that: SimpleEnum): Int = this.se.[here i want to get instance of SimpleEnum, just like i used to do in java, but unfortunately it's not possible]
  }
  </code></pre>
  
  <p>So in SimpleClass i just need to get the Value attached to corresponding SimpleEnum val.</p>
  
  <p><a href="https://i.stack.imgur.com/ioxYI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ioxYI.png" alt="enter image description here"></a></p>
  
  <p>In java i'm able to declare a variable on enum and access an actual value corresponding to it by this var, in scala i'm looking for a way to get an instance of enum and reach out for its value. </p>