Packages

trait ByteIsIntegral extends Integral[Byte]

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

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.

    It can't extend AnyVal because it is not a top-level class or a member of a statically accessible object.

    Definition Classes
    Ordering

Abstract Value Members

  1. abstract def compare(x: Byte, y: Byte): 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 abs(x: Byte): Byte
    Definition Classes
    Numeric
  2. def equiv(x: Byte, y: Byte): Boolean

    Return true if x == y in the ordering.

    Return true if x == y in the ordering.

    Definition Classes
    OrderingPartialOrderingEquiv
  3. def fromInt(x: Int): Byte
    Definition Classes
    ByteIsIntegralNumeric
  4. def gt(x: Byte, y: Byte): Boolean

    Return true if x > y in the ordering.

    Return true if x > y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  5. def gteq(x: Byte, y: Byte): Boolean

    Return true if x >= y in the ordering.

    Return true if x >= y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  6. 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
  7. def lt(x: Byte, y: Byte): Boolean

    Return true if x < y in the ordering.

    Return true if x < y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  8. def lteq(x: Byte, y: Byte): Boolean

    Return true if x <= y in the ordering.

    Return true if x <= y in the ordering.

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

    Return x if x >= y, otherwise y.

    Return x if x >= y, otherwise y.

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

    Return x if x <= y, otherwise y.

    Return x if x <= y, otherwise y.

    Definition Classes
    Ordering
  11. def minus(x: Byte, y: Byte): Byte
    Definition Classes
    ByteIsIntegralNumeric
  12. implicit def mkNumericOps(lhs: Byte): IntegralOps
    Definition Classes
    IntegralNumeric
  13. implicit def mkOrderingOps(lhs: Byte): 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
  14. def negate(x: Byte): Byte
    Definition Classes
    ByteIsIntegralNumeric
  15. def on[U](f: (U) => Byte): 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
  16. def one: Byte
    Definition Classes
    Numeric
  17. def orElse(other: Ordering[Byte]): Ordering[Byte]

    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))
  18. def orElseBy[S](f: (Byte) => S)(implicit ord: Ordering[S]): Ordering[Byte]

    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)
  19. def parseString(str: String): Option[Byte]
    Definition Classes
    ByteIsIntegralNumeric
  20. def plus(x: Byte, y: Byte): Byte
    Definition Classes
    ByteIsIntegralNumeric
  21. def quot(x: Byte, y: Byte): Byte
    Definition Classes
    ByteIsIntegralIntegral
  22. def rem(x: Byte, y: Byte): Byte
    Definition Classes
    ByteIsIntegralIntegral
  23. def reverse: Ordering[Byte]

    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
  24. def reversed(): Comparator[Byte]
    Definition Classes
    Comparator
  25. def sign(x: Byte): Byte
    Definition Classes
    ByteIsIntegralNumeric
  26. def signum(x: Byte): Int
    Definition Classes
    ByteIsIntegralNumeric
  27. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: java.util.function.Function[_ >: Byte <: AnyRef, _ <: U]): Comparator[Byte]
    Definition Classes
    Comparator
  28. def thenComparing[U <: AnyRef](arg0: java.util.function.Function[_ >: Byte <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[Byte]
    Definition Classes
    Comparator
  29. def thenComparing(arg0: Comparator[_ >: Byte <: AnyRef]): Comparator[Byte]
    Definition Classes
    Comparator
  30. def thenComparingDouble(arg0: ToDoubleFunction[_ >: Byte <: AnyRef]): Comparator[Byte]
    Definition Classes
    Comparator
  31. def thenComparingInt(arg0: ToIntFunction[_ >: Byte <: AnyRef]): Comparator[Byte]
    Definition Classes
    Comparator
  32. def thenComparingLong(arg0: ToLongFunction[_ >: Byte <: AnyRef]): Comparator[Byte]
    Definition Classes
    Comparator
  33. def times(x: Byte, y: Byte): Byte
    Definition Classes
    ByteIsIntegralNumeric
  34. def toDouble(x: Byte): Double
    Definition Classes
    ByteIsIntegralNumeric
  35. def toFloat(x: Byte): Float
    Definition Classes
    ByteIsIntegralNumeric
  36. def toInt(x: Byte): Int
    Definition Classes
    ByteIsIntegralNumeric
  37. def toLong(x: Byte): Long
    Definition Classes
    ByteIsIntegralNumeric
  38. def tryCompare(x: Byte, y: Byte): 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
  39. def zero: Byte
    Definition Classes
    Numeric