_methods

trait _methods[A <: Raw.Short]
trait Short.Z.ToPrimitives[A]
trait _methods[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("remainder")
inline def %(inline v: A | Byte | Short): A

Remainder

Remainder

Returns the remainder of the division of this by given value

Source
Numerical.scala
@scala.annotation.targetName("multiply")
inline def *(inline v: A | Byte | Short): A

Multiply

Multiply

Returns the product of this and given value

Source
Numerical.scala
@scala.annotation.targetName("plus")
inline def +(inline v: A | Byte | Short): A

Plus

Plus

Returns the sum of this and given value

Source
Numerical.scala
@scala.annotation.targetName("minus")
inline def -(inline v: A | Byte | Short): A

Minus

Minus

Returns difference of this and given value

Source
Numerical.scala
@scala.annotation.targetName("divide")
inline def /(inline v: A | Byte | Short): A

Divide

Divide

Returns the quotient of this and given value

Source
Numerical.scala
@scala.annotation.targetName("less")
inline def <(inline v: A | Byte | Short | Int | Long | Float | Double): Boolean

Less

Less

Returns true if current value is less than given, false - otherwise

Source
Numerical.scala
@scala.annotation.targetName("lessOrEqual")
inline def <=(inline v: A | Byte | Short | Int | Long | Float | Double): Boolean

Less or equal

Less or equal

Returns true if current value is less or equal to given, false - otherwise

Source
Numerical.scala
@scala.annotation.targetName("range")
inline def <>(inline to: Short.G.<>[A]

Range

Range

Returns Range from current to given value

Note. Range uses base primitive natural ordering

Inherited from
zMethodsBase
Source
Ordered.scala
@scala.annotation.targetName("rangeOfSize")
inline def <>=(inline sz: Int): Short.G.<>[A]
Inherited from
zMethodsBase
Source
Ordered.scala
@scala.annotation.targetName("rangeX")
inline def <>>(inline to: Short.G.<>[A]

Exclusive end range

Exclusive end range

Returns Range from current to given value exclusive

Note. Range uses base primitive natural ordering

Inherited from
zMethodsBase
Source
Ordered.scala
@scala.annotation.targetName("greater")
inline def >(inline v: A | Byte | Short | Int | Long | Float | Double): Boolean

Greater

Greater

Returns true if current value is greater than given, false - otherwise

Source
Numerical.scala
@scala.annotation.targetName("greaterOrEqual")
inline def >=(inline v: A | Byte | Short | Int | Long | Float | Double): Boolean

Greater or equal

Greater or equal

Returns true if current value is greater or equal to given, false - otherwise

Source
Numerical.scala
inline def abs: A
inline def atLeast(v: A

Max

Max

Returns maximum of current or given value

Inherited from
zMethodsBase
Source
Ordered.scala
inline def atMost(v: A

Min

Min

Returns minimun of current or given value

Inherited from
zMethodsBase
Source
Ordered.scala
inline def real: Short

Real value

Real value

Returns real value standing behind the opaque type

Inherited from
_methods
Source
__.scala
inline def roundTo(inline size: A)(using inline r: Rounding): A

Round to size

Round to size

Rounds current value to specified size

Source
Numerical.scala
inline def sign: Int

Sign

Sign

Returns -1 if this is negative, 0 - if this value equals to 0, and 1 otherwise

Source
Numerical.scala
inline def unary_-: A

Negate

Negate

Returns negation of this value

Source
Numerical.scala

Make

inline def Byte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Char: Char

Make Char

Make Char

Attached Char constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Double: Double

Make Double

Make Double

Attached Double constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Float: Float

Make Float

Make Float

Attached Float constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Int: Int

Make Int

Make Int

Attached Int constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Long: Long

Make Long

Make Long

Attached Long constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Number: java.lang.Short

Make Number

Make Number

Attached Number constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Short: Short

Make Short

Make Short

Returnes underlying value

Inherited from
toPrimitives
Source
toPrimitives.scala