scala / 3.1 / scala / enumeration$value.html

Class scala.Value

@SerialVersionUID(7091335633555234129L)
abstract class Value extends Ordered[Value] with Serializable

The type of the enumerated values.

Supertypes
Known subtypes

Abstract methods

Source
def id: Int

the id and bit location of this enumeration value

Concrete methods

Source
def +(v: Value): ValueSet

Create a ValueSet which contains this value and another one

Source
override def compare(that: Value): Int

Definition Classes Ordered

Source
override def equals(other: Any): Boolean

Definition Classes Any

Source
override def hashCode: Int

Definition Classes Any

Inherited methods

Source
def <(that: Value): Boolean

Returns true if this is less than that

Inherited from Ordered

Source
def <=(that: Value): Boolean

Returns true if this is less than or equal to that.

Inherited from Ordered

Source
def >(that: Value): Boolean

Returns true if this is greater than that.

Inherited from Ordered

Source
def >=(that: Value): Boolean

Returns true if this is greater than or equal to that.

Inherited from Ordered

Source
def compareTo(that: Value): Int

Result of comparing this with operand that.

Inherited from Ordered

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