You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$values.register(this) // register enum value so that `valueOf` and `values` can return it.
180
180
}
181
181
```
182
182
183
-
The anonymous classalso implements the abstract `Product` methods that it inherits from `Enum`.
184
183
The `$ordinal` method above is used to generate the `ordinal` method if the enumdoes not extend a `java.lang.Enum` (as Scala enums do not extend `java.lang.Enum`s unless explicitly specified). Incase it does, there is no need to generate `ordinal` as `java.lang.Enum` defines it.
0 commit comments