You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PosLong(1L) // compilesPosLong(0L) // compile-time errorPosLong(-1L) // compile-time errorPosLong.from(123L)
// Either[String, PosLong] = Right(PosLong(123L))PosLong.from(-123L)
// Either[String, PosLong] = Left("Invalid value: -123L. It must be a positive Long")PosLong.unsafeFrom(999L)
// PosLong = PosLong(999L)PosLong.unsafeFrom(-999L)
// IllegalArgumentException(Invalid value: -999L. It must be a positive Long) is thrown
The text was updated successfully, but these errors were encountered:
Summary
[core] Add
numeric.PosLong
Version
unreleased
Description
The text was updated successfully, but these errors were encountered: