RoundingMode

scala.math.BigDecimal$.RoundingMode$
object RoundingMode extends Enumeration

Attributes

Source
BigDecimal.scala
Graph
Supertypes
class Enumeration
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

protected class Val(i: Int, name: String) extends Value, Serializable

A class implementing the scala.Enumeration.Value type.

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

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
Supertypes
class Value
trait Serializable
trait Ordered[Value]
trait Comparable[Value]
class Object
trait Matchable
class Any
Show all
abstract class Value extends Ordered[Value], Serializable

The type of the enumerated values.

The type of the enumerated values.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
Supertypes
trait Serializable
trait Ordered[Value]
trait Comparable[Value]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Val
object ValueOrdering extends Ordering[Value]

An ordering by id for values of this set

An ordering by id for values of this set

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
Supertypes
trait Ordering[Value]
trait Equiv[Value]
trait Serializable
trait Comparator[Value]
class Object
trait Matchable
class Any
Show all

A class for sets of values.

A class for sets of values. Iterating through this set will yield values in increasing order of their ids.

Value parameters

nnIds

The set of ids of values (adjusted so that the lowest value does not fall below zero), organized as a BitSet.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
Supertypes

A factory object for value sets

A factory object for value sets

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
Supertypes

Types

Attributes

Source
BigDecimal.scala

Value members

Inherited methods

final protected def Value(i: Int, name: String): Value

Creates a fresh value, part of this enumeration, called name and identified by the integer i.

Creates a fresh value, part of this enumeration, called name and identified by the integer i.

Value parameters

i

An integer that identifies this value at run-time. It must be unique amongst all values of the enumeration.

name

A human-readable name for that value.

Attributes

Returns

Fresh value with the provided identifier i and name name.

Inherited from:
Enumeration
Source
Enumeration.scala
final protected def Value(name: String): Value

Creates a fresh value, part of this enumeration, called name.

Creates a fresh value, part of this enumeration, called name.

Value parameters

name

A human-readable name for that value.

Attributes

Returns

Fresh value called name.

Inherited from:
Enumeration
Source
Enumeration.scala
final protected def Value(i: Int): Value

Creates a fresh value, part of this enumeration, identified by the integer i.

Creates a fresh value, part of this enumeration, identified by the integer i.

Value parameters

i

An integer that identifies this value at run-time. It must be unique amongst all values of the enumeration.

Attributes

Returns

Fresh value identified by i.

Inherited from:
Enumeration
Source
Enumeration.scala
final protected def Value: Value

Creates a fresh value, part of this enumeration.

Creates a fresh value, part of this enumeration.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
final def apply(x: Int): Value

The value of this enumeration with given id x

The value of this enumeration with given id x

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
final def maxId: Int

The one higher than the highest integer amongst those used to identify values in this enumeration.

The one higher than the highest integer amongst those used to identify values in this enumeration.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
protected def readResolve(): AnyRef

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
override def toString: String

The name of this enumeration.

The name of this enumeration.

Attributes

Definition Classes
Inherited from:
Enumeration
Source
Enumeration.scala

The values of this enumeration as a set.

The values of this enumeration as a set.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
final def withName(s: String): Value

Return a Value from this Enumeration whose name matches the argument s.

Return a Value from this Enumeration whose name matches the argument s. The names are determined automatically via reflection.

Value parameters

s

an Enumeration name

Attributes

Returns

the Value of this Enumeration if its name matches s

Throws

NoSuchElementException if no Value with a matching name is in this Enumeration

Inherited from:
Enumeration
Source
Enumeration.scala

Concrete fields

val CEILING: Value

Attributes

Source
BigDecimal.scala
val DOWN: Value

Attributes

Source
BigDecimal.scala
val FLOOR: Value

Attributes

Source
BigDecimal.scala

Attributes

Source
BigDecimal.scala

Attributes

Source
BigDecimal.scala
val HALF_UP: Value

Attributes

Source
BigDecimal.scala

Attributes

Source
BigDecimal.scala
val UP: Value

Attributes

Source
BigDecimal.scala

Inherited fields

protected var nextId: Int

The integer to use to identify the next created value.

The integer to use to identify the next created value.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala
protected var nextName: Iterator[String]

The string to use to name the next created value.

The string to use to name the next created value.

Attributes

Inherited from:
Enumeration
Source
Enumeration.scala