Packages

trait BigDecimalAsIfIntegral extends BigDecimalIsConflicted with Integral[BigDecimal]

Source
Numeric.scala
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigDecimalAsIfIntegral
  2. Integral
  3. BigDecimalIsConflicted
  4. Numeric
  5. Ordering
  6. PartialOrdering
  7. Equiv
  8. Serializable
  9. Comparator
  10. AnyRef
  11. Any
Implicitly
  1. by orderingToOrdered
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class IntegralOps extends NumericOps
    Definition Classes
    Integral
  2. class NumericOps extends AnyRef
    Definition Classes
    Numeric
  3. class OrderingOps extends AnyRef

    This inner class defines comparison operators available for T.

    This inner class defines comparison operators available for T.

    Definition Classes
    Ordering

Abstract Value Members

  1. abstract def compare(x: BigDecimal, y: BigDecimal): Int

    Returns an integer whose sign communicates how x compares to y.

    Returns an integer whose sign communicates how x compares to y.

    The result sign has the following meaning:

    • negative if x < y
    • positive if x > y
    • zero otherwise (if x == y)
    Definition Classes
    Ordering → Comparator

Concrete Value Members

  1. def <(that: BigDecimalAsIfIntegral): Boolean

    Returns true if this is less than that

    Returns true if this is less than that

    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Definition Classes
    Ordered
  2. def <=(that: BigDecimalAsIfIntegral): Boolean

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

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

    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Definition Classes
    Ordered
  3. def >(that: BigDecimalAsIfIntegral): Boolean

    Returns true if this is greater than that.

    Returns true if this is greater than that.

    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Definition Classes
    Ordered
  4. def >=(that: BigDecimalAsIfIntegral): Boolean

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

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

    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Definition Classes
    Ordered
  5. def abs(x: BigDecimal): BigDecimal
    Definition Classes
    Numeric
  6. def compareTo(that: BigDecimalAsIfIntegral): Int

    Result of comparing this with operand that.

    Result of comparing this with operand that.

    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Definition Classes
    Ordered → Comparable
  7. def equiv(x: BigDecimal, y: BigDecimal): Boolean

    Return true if x == y in the ordering.

    Return true if x == y in the ordering.

    Definition Classes
    OrderingPartialOrderingEquiv
  8. def fromInt(x: Int): BigDecimal
    Definition Classes
    BigDecimalIsConflictedNumeric
  9. def gt(x: BigDecimal, y: BigDecimal): Boolean

    Return true if x > y in the ordering.

    Return true if x > y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  10. def gteq(x: BigDecimal, y: BigDecimal): Boolean

    Return true if x >= y in the ordering.

    Return true if x >= y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  11. def isReverseOf(other: Ordering[_]): Boolean

    Returns whether or not the other ordering is the opposite ordering of this one.

    Returns whether or not the other ordering is the opposite ordering of this one.

    Equivalent to other == this.reverse.

    Implementations should only override this method if they are overriding reverse as well.

    Definition Classes
    Ordering
  12. def lt(x: BigDecimal, y: BigDecimal): Boolean

    Return true if x < y in the ordering.

    Return true if x < y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  13. def lteq(x: BigDecimal, y: BigDecimal): Boolean

    Return true if x <= y in the ordering.

    Return true if x <= y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  14. def max[U <: BigDecimal](x: U, y: U): U

    Return x if x >= y, otherwise y.

    Return x if x >= y, otherwise y.

    Definition Classes
    Ordering
  15. def min[U <: BigDecimal](x: U, y: U): U

    Return x if x <= y, otherwise y.

    Return x if x <= y, otherwise y.

    Definition Classes
    Ordering
  16. def minus(x: BigDecimal, y: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalIsConflictedNumeric
  17. implicit def mkNumericOps(lhs: BigDecimal): IntegralOps
    Definition Classes
    IntegralNumeric
  18. implicit def mkOrderingOps(lhs: BigDecimal): OrderingOps

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    Definition Classes
    Ordering
  19. def negate(x: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalIsConflictedNumeric
  20. def on[U](f: (U) => BigDecimal): Ordering[U]

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    def compare(x:U, y:U) = Ordering[T].compare(f(x), f(y))
    Definition Classes
    Ordering
  21. def one: BigDecimal
    Definition Classes
    Numeric
  22. def orElse(other: Ordering[BigDecimal]): Ordering[BigDecimal]

    Creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else the result of others compare function.

    Creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else the result of others compare function.

    other

    an Ordering to use if this Ordering returns zero

    Definition Classes
    Ordering
    Example:
    1. case class Pair(a: Int, b: Int)
      
      val pairOrdering = Ordering.by[Pair, Int](_.a)
                                 .orElse(Ordering.by[Pair, Int](_.b))
  23. def orElseBy[S](f: (BigDecimal) => S)(implicit ord: Ordering[S]): Ordering[BigDecimal]

    Given f, a function from T into S, creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else a result equivalent to:

    Given f, a function from T into S, creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else a result equivalent to:

    Ordering[S].compare(f(x), f(y))

    This function is equivalent to passing the result of Ordering.by(f) to orElse.

    Definition Classes
    Ordering
    Example:
    1. case class Pair(a: Int, b: Int)
      
      val pairOrdering = Ordering.by[Pair, Int](_.a)
                                 .orElseBy[Int](_.b)
  24. def parseString(str: String): Option[BigDecimal]
    Definition Classes
    BigDecimalIsConflictedNumeric
  25. def plus(x: BigDecimal, y: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalIsConflictedNumeric
  26. def quot(x: BigDecimal, y: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalAsIfIntegralIntegral
  27. def rem(x: BigDecimal, y: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalAsIfIntegralIntegral
  28. def reverse: Ordering[BigDecimal]

    Return the opposite ordering of this one.

    Return the opposite ordering of this one.

    Implementations overriding this method MUST override isReverseOf as well if they change the behavior at all (for example, caching does not require overriding it).

    Definition Classes
    OrderingPartialOrdering
  29. def reversed(): Comparator[BigDecimal]
    Definition Classes
    Comparator
  30. def sign(x: BigDecimal): BigDecimal
    Definition Classes
    Numeric
  31. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: java.util.function.Function[_ >: BigDecimal <: AnyRef, _ <: U]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  32. def thenComparing[U <: AnyRef](arg0: java.util.function.Function[_ >: BigDecimal <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  33. def thenComparing(arg0: Comparator[_ >: BigDecimal <: AnyRef]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  34. def thenComparingDouble(arg0: ToDoubleFunction[_ >: BigDecimal <: AnyRef]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  35. def thenComparingInt(arg0: ToIntFunction[_ >: BigDecimal <: AnyRef]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  36. def thenComparingLong(arg0: ToLongFunction[_ >: BigDecimal <: AnyRef]): Comparator[BigDecimal]
    Definition Classes
    Comparator
  37. def times(x: BigDecimal, y: BigDecimal): BigDecimal
    Definition Classes
    BigDecimalIsConflictedNumeric
  38. def toDouble(x: BigDecimal): Double
    Definition Classes
    BigDecimalIsConflictedNumeric
  39. def toFloat(x: BigDecimal): Float
    Definition Classes
    BigDecimalIsConflictedNumeric
  40. def toInt(x: BigDecimal): Int
    Definition Classes
    BigDecimalIsConflictedNumeric
  41. def toLong(x: BigDecimal): Long
    Definition Classes
    BigDecimalIsConflictedNumeric
  42. def tryCompare(x: BigDecimal, y: BigDecimal): Some[Int]

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Definition Classes
    OrderingPartialOrdering
  43. def zero: BigDecimal
    Definition Classes
    Numeric

Shadowed Implicit Value Members

  1. def compare(that: BigDecimalAsIfIntegral): Int

    Result of comparing this with operand that.

    Result of comparing this with operand that.

    Implement this method to determine how instances of A will be sorted.

    Returns x where:

    • x < 0 when this < that
    • x == 0 when this == that
    • x > 0 when this > that
    Implicit
    This member is added by an implicit conversion from BigDecimalAsIfIntegral toOrdered[BigDecimalAsIfIntegral] performed by method orderingToOrdered in scala.math.Ordered.This conversion will take place only if an implicit value of type Ordering[BigDecimalAsIfIntegral] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (bigDecimalAsIfIntegral: Ordered[BigDecimalAsIfIntegral]).compare(that)
    Definition Classes
    Ordered

Deprecated Value Members

  1. def signum(x: BigDecimal): Int
    Definition Classes
    Numeric
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) use sign method instead