ordinal() method in scala Enumeration
<p>in java i've got enum say</p>

<pre><code>enum Num {
    ONE,
    TWO,
    THREE;

    private static Num current = ONE;
    private static Num next = TWO;

    public Num getNext(){
        return values()[(ordinal() + 1) % values().length];
    }

    public static Num getNextNum(){
       next = current.getNext()
    }
}
</code></pre>

<p>so i'm able to assign next in that fashion calling getNextNum(), but scala enums, as it seems to me, lacks this feature. do u know any other workaround except using java enum in scala code?</p>