YamlNumber

dev.hnaderi.yaml4s.YamlNumber
See theYamlNumber companion object
sealed abstract class YamlNumber extends Serializable

Attributes

Companion:
object
Source:
YamlNumber.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Attributes

Source:
YamlNumber.scala

Return this number as a scala.math.BigDecimal.

Return this number as a scala.math.BigDecimal.

Attributes

Source:
YamlNumber.scala

Return this number as a scala.math.BigInt if it's a sufficiently small whole number.

Return this number as a scala.math.BigInt if it's a sufficiently small whole number.

Attributes

Source:
YamlNumber.scala

Convert this number to its best scala.Double approximation.

Convert this number to its best scala.Double approximation.

Anything over Double.MaxValue will be rounded to Double.PositiveInfinity and anything below Double.MinValue is rounded to Double.NegativeInfinity.

Attributes

Source:
YamlNumber.scala

Convert this number to its best scala.Float approximation.

Convert this number to its best scala.Float approximation.

Anything over Float.MaxValue will be rounded to Float.PositiveInfinity and anything below Float.MinValue is rounded to Float.NegativeInfinity.

Attributes

Source:
YamlNumber.scala

Return this number as a scala.Long if it's a valid scala.Long.

Return this number as a scala.Long if it's a valid scala.Long.

Attributes

Source:
YamlNumber.scala

Concrete methods

final def toByte: Option[Byte]

Return this number as a scala.Byte if it's a valid scala.Byte.

Return this number as a scala.Byte if it's a valid scala.Byte.

Attributes

Source:
YamlNumber.scala
final def toInt: Option[Int]

Return this number as an scala.Int if it's a valid scala.Int.

Return this number as an scala.Int if it's a valid scala.Int.

Attributes

Source:
YamlNumber.scala
final def toShort: Option[Short]

Return this number as a scala.Short if it's a valid scala.Short.

Return this number as a scala.Short if it's a valid scala.Short.

Attributes

Source:
YamlNumber.scala