scala / 3.1 / scala / runtime / enumvalue.html

Trait scala.runtime.EnumValue

@transparentTrait
trait EnumValue extends Product with Serializable

Supertypes

Concrete methods

Source
override def canEqual(that: Any): Boolean

Definition Classes Equals

Source
override def productArity: Int

Definition Classes Product

Source
override def productElement(n: Int): Any

Definition Classes Product

Source
override def productElementName(n: Int): String

Definition Classes Product

Inherited methods

Source

An iterator over the names of all the elements of this product.

Inherited from Product

Source

An iterator over all the elements of this product.

Returns

in the default implementation, an Iterator[Any]

Inherited from Product

Source

A string used in the toString methods of derived classes. Implementations may override this method to prepend a string prefix to the result of toString methods.

Returns

in the default implementation, the empty string

Inherited from Product

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/runtime/EnumValue.html