object PosZInt
The companion object for PosZInt that offers
factory methods that produce PosZInts, implicit
widening conversions from PosZInt to other
numeric types, and maximum and minimum constant values for
PosZInt.
- Source
 - PosZInt.scala
 
- Alphabetic
 - By Inheritance
 
- PosZInt
 - 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: PosZInt
      
      
      
The largest value representable as a non-negative
Int, which isPosZInt(2147483647). - 
      
      
      
        
      
    
      
        final 
        val
      
      
        MinValue: PosZInt
      
      
      
The smallest value representable as a non-negative
Int, which isPosZInt(0). - 
      
      
      
        
      
    
      
        implicit macro 
        def
      
      
        apply(value: Int): PosZInt
      
      
      
A factory method, implemented via a macro, that produces a
PosZIntif passed a validIntliteral, otherwise a compile time error.A factory method, implemented via a macro, that produces a
PosZIntif passed a validIntliteral, otherwise a compile time error.The macro that implements this method will inspect the specified
Intexpression at compile time. If the expression is a non-negativeIntliteral, i.e., with a value greater than or equal to 0, it will return aPosZIntrepresenting that value. Otherwise, the passedIntexpression is either a literal that is 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 inspectsIntliterals at compile time, whereasfrominspectsIntvalues at run time.- value
 the
Intliteral expression to inspect at compile time, and if non-negative, to return wrapped in aPosZIntat run time.- returns
 the specified, valid
Intliteral value wrapped in aPosZInt. (If the specified expression is not a validIntliteral, 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: Int): Option[PosZInt]
      
      
      
A factory method that produces an
Option[PosZInt]given anIntvalue.A factory method that produces an
Option[PosZInt]given anIntvalue.This method will inspect the passed
Intvalue and if it is a non-negativeInt, i.e., a value greater than or equal to 0, it will return aPosZIntrepresenting that value, wrapped in aSome. Otherwise, the passedIntvalue is negative, so this method will returnNone.This factory method differs from the
applyfactory method in thatapplyis implemented via a macro that inspectsIntliterals at compile time, whereasfrominspectsIntvalues at run time.- value
 the
Intto inspect, and if non-negative, return wrapped in aSome[PosZInt].- returns
 the specified
Intvalue wrapped in aSome[PosZInt], 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
      
      
        posZIntOrd: Ordering[PosZInt]
      
      
      
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(poz: PosZInt): Double
      
      
      
Implicit widening conversion from
PosZInttoDouble.Implicit widening conversion from
PosZInttoDouble.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toDouble.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToFloat(poz: PosZInt): Float
      
      
      
Implicit widening conversion from
PosZInttoFloat.Implicit widening conversion from
PosZInttoFloat.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toFloat.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToInt(poz: PosZInt): Int
      
      
      
Implicit widening conversion from
PosZInttoInt.Implicit widening conversion from
PosZInttoInt.- returns
 the
Intvalue underlying the specifiedPosZInt.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToLong(poz: PosZInt): Long
      
      
      
Implicit widening conversion from
PosZInttoLong.Implicit widening conversion from
PosZInttoLong.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toLong.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToPosZDouble(poz: PosZInt): PosZDouble
      
      
      
Implicit widening conversion from
PosZInttoPosZDouble.Implicit widening conversion from
PosZInttoPosZDouble.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toDoubleand wrapped in aPosZDouble.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToPosZFloat(poz: PosZInt): PosZFloat
      
      
      
Implicit widening conversion from
PosZInttoPosZFloat.Implicit widening conversion from
PosZInttoPosZFloat.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toFloatand wrapped in aPosZFloat.
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        widenToPosZLong(poz: PosZInt): PosZLong
      
      
      
Implicit widening conversion from
PosZInttoPosZLong.Implicit widening conversion from
PosZInttoPosZLong.- returns
 the
Intvalue underlying the specifiedPosZInt, widened toLongand wrapped in aPosZLong.