_methods

trait _methods extends _methods

Default methods for all Int.Opaque.Data.Ordered defined types

Source
Ordered.scala
trait _methods
trait _methods
class java.lang.Object
trait scala.Matchable
class Any
trait _methods
class Int.Opaque.Data.Calculable[Int.Opaque.Data.Calculable.A]
class Int.Opaque.Data.Ordered[Int.Opaque.Data.Ordered.A]
class Int.Opaque.Data.Numerical[Int.Opaque.Data.Numerical.A]
class Int.Opaque.Data.Sequential[Int.Opaque.Data.Sequential.A]
object Day
object Month
object Week
object Year
trait _methods

Def

@targetName("less")
inline def <(v: THIS_OPAQUE): Boolean

Less

Less

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

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

Source
Ordered.scala
@targetName("range")
inline def <>(to: Int.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): Int.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: Int.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

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

Source
Ordered.scala
@targetName("Opt")
inline def ?: Int.G.Opt[THIS_OPAQUE]

To option

To option

Returns Int 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: Int

Real value

Real value

Returns Int value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala