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 764cac0 commit 405560dCopy full SHA for 405560d
commons-core/src/main/scala/com/avsystem/commons/misc/SealedUtils.scala
@@ -94,6 +94,13 @@ trait AutoNamedEnum extends NamedEnum with Product {
94
def name: String = productPrefix
95
}
96
97
+/**
98
+ * Like [[AutoNamedEnum]] but derived names are uncapitalized (first letter lowercased).
99
+ */
100
+trait LowerCaseAutoNamedEnum extends AutoNamedEnum {
101
+ override def name: String = super.name.uncapitalize
102
+}
103
+
104
/**
105
* Base trait for companion objects of sealed traits that serve as named enums. `NamedEnumCompanion` is an
106
* extension of [[SealedEnumCompanion]] which additionally requires that every enum value has distinct string
0 commit comments