We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28bfa19 commit 4dbc6e8Copy full SHA for 4dbc6e8
library/src-bootstrapped/scala/runtime/EnumValues.scala
@@ -0,0 +1,16 @@
1
+package scala.runtime
2
+
3
+class EnumValues[E <: Enum] {
4
5
+ def register(v: E) =
6
+ throw new UnsupportedOperationException("EnumValues should not be used")
7
8
+ def fromInt: Map[Int, E] =
9
10
11
+ def fromName: Map[String, E] =
12
13
14
+ def values: Iterable[E] =
15
16
+}
0 commit comments