scala / 3.1 / scala / enumeration$val.html

Class scala.Val

@SerialVersionUID(0.-(3501153230598116017L))
protected class Val(i: Int, name: String) extends Value with Serializable

A class implementing the scala.Enumeration.Value type. This class can be overridden to change the enumeration's naming and integer identification behaviour.

Supertypes

Constructors

Source
def this(i: Int)

Source
def this(name: String)

Source
def this()

Concrete methods

Source
def id: Int

Source
override def toString(): String

Definition Classes Any

Inherited methods

Source
def +(v: Value): ValueSet

Create a ValueSet which contains this value and another one

Inherited from Value

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
override def compare(that: Value): Int

Definition Classes Value -> Ordered
Inherited from Value

Source
def compareTo(that: Value): Int

Result of comparing this with operand that.

Inherited from Ordered

Source
override def equals(other: Any): Boolean

Definition Classes Value -> Any
Inherited from Value

Source
override def hashCode: Int

Definition Classes Value -> Any
Inherited from Value

© 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$Val.html