implicit final class ConvenientLong extends AnyVal
This class extends the interface of Long
with convenience methods.
- Alphabetic
- By Inheritance
- ConvenientLong
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConvenientLong(value: Long)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atLeast(minimum: Long): Long
num atLeast limit
is equivalent tonum.max(limit)
. - def atMost(maximum: Long): Long
num atMost limit
is equivalent tonum.min(limit)
. - def clamp(low: Int, high: Int): Long
num.clamp(low, high)
is equivalent tonum.max(low).min(high)
. - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isBetween(low: Long, high: Long): Boolean
Determines if the at least as large as
low
and less thanhigh
.Determines if the at least as large as
low
and less thanhigh
. Note that the lower bound is inclusive and the upper bound exclusive. - def isEven: Boolean
Determines if the integer is divisible by two.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOdd: Boolean
Determines if the integer isn’t divisible by two.
- def toString: String
- Definition Classes
- Any