_methods

trait _methods extends _methods

Default methods for all Short.Opaque.Data.Calculable defined types

Source
Calculable.scala
trait _methods
trait _methods
trait _methods
class java.lang.Object
trait scala.Matchable
class Any
class Short.Opaque.Data.Calculable[Short.Opaque.Data.Calculable.A]

Def

@targetName("multiply")
inline def *(v: Byte | Short): THIS_OPAQUE

Multiply

Multiply

Returns the product of this and given value

Source
Calculable.scala
@targetName("plus")
inline def +(v: THIS_OPAQUE): THIS_OPAQUE

Plus

Plus

Returns the sum of this and given value

Source
Calculable.scala
@targetName("minus")
inline def -(v: THIS_OPAQUE): THIS_OPAQUE

Minus

Minus

Returns difference of this and given value

Source
Calculable.scala
@targetName("divide")
inline def /(v: Byte | Short): THIS_OPAQUE

Divide

Divide

Returns the quotient of this and given value

Source
Calculable.scala
@targetName("less")
inline def <(v: THIS_OPAQUE): Boolean

Less

Less

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

Inherited from
_methods
Source
Ordered.scala
@targetName("lessOrEqual")
inline def <=(v: THIS_OPAQUE): Boolean

Less or equal

Less or equal

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

Inherited from
_methods
Source
Ordered.scala
@targetName("range")
inline def <>(to: Short.G.Range[THIS_OPAQUE]

Range

Range

Returns Range from current to given value

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("rangeOfSize")
inline def <>=(sz: Int): Short.G.Range[THIS_OPAQUE]

Range by size

Range by size

Returns Range from current value to current plus given size exclusive

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("rangeX")
inline def <>>(to: Short.G.Range[THIS_OPAQUE]

Exclusive end range

Exclusive end range

Returns Range from current to given value exclusive

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("greater")
inline def >(v: THIS_OPAQUE): Boolean

Greater

Greater

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

Inherited from
_methods
Source
Ordered.scala
@targetName("greaterOrEqual")
inline def >=(v: THIS_OPAQUE): Boolean

Greater or equal

Greater or equal

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

Inherited from
_methods
Source
Ordered.scala
@targetName("Opt")
inline def ?: Short.G.Opt[THIS_OPAQUE]

To option

To option

Returns Short specialized option

Inherited from
_methods
Source
Base.scala
inline def max(v:

Max value

Max value

Returns maximum of current or given value

Inherited from
z_MethodsBase
Source
Ordered.scala
inline def min(v:

Min value

Min value

Returns minimun of current or given value

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

Real value

Real value

Returns Short value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala