object PosZFloat
The companion object for PosZFloat that offers
factory methods that produce PosZFloats, implicit
widening conversions from PosZFloat to other
numeric types, and maximum and minimum constant values for
PosZFloat.
- Source
- PosZFloat.scala
- Alphabetic
- By Inheritance
- PosZFloat
- 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: PosZFloat
The largest value representable as a non-negative
Float, which isPosZFloat(3.4028235E38). -
final
val
MinValue: PosZFloat
The smallest value representable as a non-negative
Float, which isPosZFloat(0.0F). -
implicit macro
def
apply(value: Float): PosZFloat
A factory method, implemented via a macro, that produces a
PosZFloatif passed a validFloatliteral, otherwise a compile time error.A factory method, implemented via a macro, that produces a
PosZFloatif passed a validFloatliteral, otherwise a compile time error.The macro that implements this method will inspect the specified
Floatexpression at compile time. If the expression is a non-negativeFloatliteral, i.e., with a value greater than or equal to 0, it will return aPosZFloatrepresenting that value. Otherwise, the passedFloatexpression 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 inspectsFloatliterals at compile time, whereasfrominspectsFloatvalues at run time.- value
the
Floatliteral expression to inspect at compile time, and if non-negative, to return wrapped in aPosZFloatat run time.- returns
the specified, valid
Floatliteral value wrapped in aPosZFloat. (If the specified expression is not a validFloatliteral, 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: Float): Option[PosZFloat]
A factory method that produces an
Option[PosZFloat]given aFloatvalue.A factory method that produces an
Option[PosZFloat]given aFloatvalue.This method will inspect the passed
Floatvalue and if it is a non-negativeFloat, i.e., a value greater than or equal to 0, it will return aPosZFloatrepresenting that value, wrapped in aSome. Otherwise, the passedFloatvalue is negative, so this method will returnNone.This factory method differs from the
applyfactory method in thatapplyis implemented via a macro that inspectsFloatliterals at compile time, whereasfrominspectsFloatvalues at run time.- value
the
Floatto inspect, and if non-negative, return wrapped in aSome[PosZFloat].- returns
the specified
Floatvalue wrapped in aSome[PosZFloat], 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
posZFloatOrd: Ordering[PosZFloat]
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: PosZFloat): Double
Implicit widening conversion from
PosZFloattoDouble.Implicit widening conversion from
PosZFloattoDouble.- returns
the
Floatvalue underlying the specifiedPosZFloat, widened toDouble.
-
implicit
def
widenToFloat(poz: PosZFloat): Float
Implicit widening conversion from
PosZFloattoFloat.Implicit widening conversion from
PosZFloattoFloat.- returns
the
Floatvalue underlying the specifiedPosZFloat.
-
implicit
def
widenToPosZDouble(poz: PosZFloat): PosZDouble
Implicit widening conversion from
PosZFloattoPosZDouble.Implicit widening conversion from
PosZFloattoPosZDouble.- returns
the
Floatvalue underlying the specifiedPosZFloat, widened toDoubleand wrapped in aPosZDouble.