Object/Class

org.scalactic.anyvals

PosLong

Related Docs: class PosLong | package anyvals

Permalink

object PosLong

The companion object for PosLong that offers factory methods that produce PosLongs, implicit widening conversions from PosLong to other numeric types, and maximum and minimum constant values for PosLong.

Source
PosLong.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PosLong
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val MaxValue: PosLong

    Permalink

    The largest value representable as a positive Long, which is PosLong(9223372036854775807).

    The largest value representable as a positive Long, which is PosLong(9223372036854775807).

  5. final val MinValue: PosLong

    Permalink

    The smallest value representable as a positive Long, which is PosLong(1L).

    The smallest value representable as a positive Long, which is PosLong(1L).

  6. implicit macro def apply(value: Long): PosLong

    Permalink

    A factory method, implemented via a macro, that produces a PosLong if passed a valid Long literal, otherwise a compile time error.

    A factory method, implemented via a macro, that produces a PosLong if passed a valid Long literal, otherwise a compile time error.

    The macro that implements this method will inspect the specified Long expression at compile time. If the expression is a positive Long literal, i.e., with a value greater than 0, it will return a PosLong representing that value. Otherwise, the passed Long 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 Long literals at compile time, whereas from inspects Long values at run time.

    value

    the Long literal expression to inspect at compile time, and if positive, to return wrapped in a PosLong at run time.

    returns

    the specified, valid Long literal value wrapped in a PosLong. (If the specified expression is not a valid Long literal, the invocation of this method will not compile.)

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def from(value: Long): Option[PosLong]

    Permalink

    A factory method that produces an Option[PosLong] given a Long value.

    A factory method that produces an Option[PosLong] given a Long value.

    This method will inspect the passed Long value and if it is a positive Long, i.e., a value greater than 0, it will return a PosLong representing that value, wrapped in a Some. Otherwise, the passed Long 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 Long literals at compile time, whereas from inspects Long values at run time.

    value

    the Long to inspect, and if positive, return wrapped in a Some[PosLong].

    returns

    the specified Long value wrapped in a Some[PosLong], if it is positive, else None.

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. implicit val posLongOrd: Ordering[PosLong]

    Permalink

    Implicit Ordering instance.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. implicit def widenToDouble(pos: PosLong): Double

    Permalink

    Implicit widening conversion from PosLong to Double.

    Implicit widening conversion from PosLong to Double.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Double.

  26. implicit def widenToFloat(pos: PosLong): Float

    Permalink

    Implicit widening conversion from PosLong to Float.

    Implicit widening conversion from PosLong to Float.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Float.

  27. implicit def widenToLong(pos: PosLong): Long

    Permalink

    Implicit widening conversion from PosLong to Long.

    Implicit widening conversion from PosLong to Long.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong.

  28. implicit def widenToPosDouble(pos: PosLong): PosDouble

    Permalink

    Implicit widening conversion from PosLong to PosDouble.

    Implicit widening conversion from PosLong to PosDouble.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Double and wrapped in a PosDouble.

  29. implicit def widenToPosFloat(pos: PosLong): PosFloat

    Permalink

    Implicit widening conversion from PosLong to PosFloat.

    Implicit widening conversion from PosLong to PosFloat.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Float and wrapped in a PosFloat.

  30. implicit def widenToPosZDouble(pos: PosLong): PosZDouble

    Permalink

    Implicit widening conversion from PosLong to PosZDouble.

    Implicit widening conversion from PosLong to PosZDouble.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Double and wrapped in a PosZDouble.

  31. implicit def widenToPosZFloat(pos: PosLong): PosZFloat

    Permalink

    Implicit widening conversion from PosLong to PosZFloat.

    Implicit widening conversion from PosLong to PosZFloat.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong, widened to Float and wrapped in a PosZFloat.

  32. implicit def widenToPosZLong(pos: PosLong): PosZLong

    Permalink

    Implicit widening conversion from PosLong to PosZLong.

    Implicit widening conversion from PosLong to PosZLong.

    pos

    the PosLong to widen

    returns

    the Long value underlying the specified PosLong wrapped in a PosZLong.

Inherited from AnyRef

Inherited from Any

Ungrouped