The largest value representable as a positive Int, which is PosInt(2147483647).
The largest value representable as a positive Int, which is PosInt(2147483647).
The smallest value representable as a positive Int, which is PosInt(1).
The smallest value representable as a positive Int, which is PosInt(1).
A factory method, implemented via a macro, that produces a PosInt
if passed a valid Int literal, otherwise a compile time error.
A factory method, implemented via a macro, that produces a PosInt
if passed a valid Int literal, otherwise a compile time error.
The macro that implements this method will inspect the specified Int
expression at compile time. If
the expression is a positive Int literal, i.e., with a
value greater than 0, it will return a PosInt representing that value.
Otherwise, the passed Int
expression is either a literal that is 0 or negative, or is not a literal, so
this method will give a compiler error.
This factory method differs from the from factory method
in that this method is implemented via a macro that inspects
Int literals at compile time, whereas from inspects
Int values at run time.
the Int literal expression to inspect at compile time,
and if positive, to return wrapped in a PosInt at run time.
the specified, valid Int literal value wrapped
in a PosInt. (If the specified expression is not a valid
Int literal, the invocation of this method will not
compile.)
A factory method that produces an Option[PosInt] given an
Int value.
A factory method that produces an Option[PosInt] given an
Int value.
This method will inspect the passed Int value and if
it is a positive Int, i.e., a value greater
than 0, it will return a PosInt representing that value,
wrapped in a Some. Otherwise, the passed Int
value is 0 or negative, so this method will return None.
This factory method differs from the apply factory method
in that apply is implemented via a macro that inspects
Int literals at compile time, whereas from inspects
Int values at run time.
the Int to inspect, and if positive, return
wrapped in a Some[PosInt].
the specified Int value wrapped
in a Some[PosInt], if it is positive, else None.
Implicit Ordering instance.
Implicit widening conversion from PosInt to Double.
Implicit widening conversion from PosInt to Double.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Double.
Implicit widening conversion from PosInt to Float.
Implicit widening conversion from PosInt to Float.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Float.
Implicit widening conversion from PosInt to Int.
Implicit widening conversion from PosInt to Int.
the PosInt to widen
the Int value underlying the specified PosInt.
Implicit widening conversion from PosInt to Long.
Implicit widening conversion from PosInt to Long.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Long.
Implicit widening conversion from PosInt to PosDouble.
Implicit widening conversion from PosInt to PosDouble.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Double and wrapped in a PosDouble.
Implicit widening conversion from PosInt to PosFloat.
Implicit widening conversion from PosInt to PosFloat.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Float and wrapped in a PosFloat.
Implicit widening conversion from PosInt to PosLong.
Implicit widening conversion from PosInt to PosLong.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Long and wrapped in a PosLong.
Implicit widening conversion from PosInt to PosZDouble.
Implicit widening conversion from PosInt to PosZDouble.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Double and wrapped in a PosZDouble.
Implicit widening conversion from PosInt to PosZFloat.
Implicit widening conversion from PosInt to PosZFloat.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Float and wrapped in a PosZFloat.
Implicit widening conversion from PosInt to PosZInt.
Implicit widening conversion from PosInt to PosZInt.
the PosInt to widen
the Int value underlying the specified PosInt,
wrapped in a PosZInt.
Implicit widening conversion from PosInt to PosZLong.
Implicit widening conversion from PosInt to PosZLong.
the PosInt to widen
the Int value underlying the specified PosInt,
widened to Long and wrapped in a PosZLong.
The companion object for
PosIntthat offers factory methods that producePosInts, implicit widening conversions fromPosIntto other numeric types, and maximum and minimum constant values forPosInt.