object PosDouble
The companion object for PosDouble that offers
factory methods that produce PosDoubles,
implicit widening conversions from PosDouble to
other numeric types, and maximum and minimum constant values
for PosDouble.
- Source
 - PosDouble.scala
 
- Alphabetic
 - By Inheritance
 
- PosDouble
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        val
      
      
        MaxValue: PosDouble
      
      
      
The largest value representable as a positive
Double, which isPosDouble(1.7976931348623157E308). - 
      
      
      
        
      
    
      
        final 
        val
      
      
        MinValue: PosDouble
      
      
      
The smallest value representable as a positive
Double, which isPosDouble(4.9E-324). - 
      
      
      
        
      
    
      
        implicit macro 
        def
      
      
        apply(value: Double): PosDouble
      
      
      
A factory method, implemented via a macro, that produces a
PosDoubleif passed a validDoubleliteral, otherwise a compile time error.A factory method, implemented via a macro, that produces a
PosDoubleif passed a validDoubleliteral, otherwise a compile time error.The macro that implements this method will inspect the specified
Doubleexpression at compile time. If the expression is a positiveDoubleliteral, i.e., with a value greater than 0.0, it will return aPosDoublerepresenting that value. Otherwise, the passedDoubleexpression is either a literal that is 0.0 or negative, or is not a literal, so this method will give a compiler error.This factory method differs from the
fromfactory method in that this method is implemented via a macro that inspectsDoubleliterals at compile time, whereasfrominspectsDoublevalues at run time.- value
 the
Doubleliteral expression to inspect at compile time, and if positive, to return wrapped in aPosDoubleat run time.- returns
 the specified, valid
Doubleliteral value wrapped in aPosDouble. (If the specified expression is not a validDoubleliteral, the invocation of this method will not compile.)
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        from(value: Double): Option[PosDouble]
      
      
      
A factory method that produces an
Option[PosDouble]given aDoublevalue.A factory method that produces an
Option[PosDouble]given aDoublevalue.This method will inspect the passed
Doublevalue and if it is a positiveDouble, i.e., a value greater than 0.0, it will return aPosDoublerepresenting that value, wrapped in aSome. Otherwise, the passedDoublevalue is 0.0 or negative, so this method will returnNone.This factory method differs from the
applyfactory method in thatapplyis implemented via a macro that inspectsDoubleliterals at compile time, whereasfrominspectsDoublevalues at run time.- value
 the
Doubleto inspect, and if positive, return wrapped in aSome[PosDouble].- returns
 the specified
Doublevalue wrapped in aSome[PosDouble], if it is positive, elseNone.
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        posDoubleOrd: Ordering[PosDouble]
      
      
      
Implicit Ordering instance.
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToDouble(pos: PosDouble): Double
      
      
      
Implicit widening conversion from
PosDoubletoDouble.Implicit widening conversion from
PosDoubletoDouble.- pos
 the
PosDoubleto widen- returns
 the
Doublevalue underlying the specifiedPosDouble
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToPosZDouble(pos: PosDouble): PosZDouble
      
      
      
Implicit widening conversion from
PosDoubletoPosZDouble.Implicit widening conversion from
PosDoubletoPosZDouble.- pos
 the
PosDoubleto widen- returns
 the
Doublevalue underlying the specifiedPosDoublewrapped in aPosZDouble.