Float

object Float extends Float.G.Companion.Containers[scala.Float]

Companion Object for scala.Float

This object also defines specialized custom containers for Float type, so the following code can run without boxing:


   val s: Float.Stream = (1F <> 5F).stepStream(_ + 1)

   val o: Float.Opt    = s.readRawOpt  // Holds Float.Opt(1.0)

   val l: Float.Pack   = s.pack       // Holds (2.0, 3.0, 4.0)
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any

Member

trait _methods

Float Extension Methods

Extension methods universaly avaialble for type scala.Float

Source
_methods.scala
object G

Float Generic Specialized Containers

The generic containers are never used directly, but rather as customized shortcuts for specific types.

For example:

  • Float.G.Pack[Float] usually called as Float.Pack
  • Double.G.Idx[Percent] usually called as Percent.Idx
  • Int.G.Pro.Mutable[Day] usually called as Day.Pro.Mutable
  • Long.G.Collection[Time] usually called as Time.Collection
Source
__.scala
opaque type Opaque

Float.Opaque is the supertype for all opaques based on Float

See sample type definition.

Source
__.scala

Def

inline def max: Float

Maximum

Maximum

Returns type maximum value defined in java.lang.Float.MAX_VALUE

Source
__.scala
inline def min: Float

Minimum

Minimum

Returns type minimal value defined in java.lang.Float.MIN_VALUE

Source
__.scala
inline def ordering: Ordering[Float]

Ordering

Ordering

Returns type natural ordering

Source
__.scala

Containers

type Buffer = Float.G.Buffer[Float]

Specialized buffer

Specialized buffer

Already parameterized generic buffer

Inherited from
Containers
Source
Containers.scala

Specialized collection

Specialized collection

Already parameterized generic collection

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala

Specialized functions

Specialized functions

Already parameterized set of generic functions

Inherited from
Containers
Source
Containers.scala
type Idx = Float.G.Idx[Float]

Specialized indexed collection

Specialized indexed collection

Already parameterized generic indexed collection

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Lookup[B] = Val.Lookup[Float, B]

Specialized lookup collection

Specialized lookup collection

Already parameterized generic lookup collection

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Opt = Float.G.Opt[Float]

Specialized option

Specialized option

Already parameterized generic option

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Pack = Float.G.Pack[Float]

Specialized pack

Specialized pack

Already parameterized generic immutable collection

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Pro = Float.G.Pro[Float]

Specialized property

Specialized property

Already parameterized generic property

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Promise = Val.Promise[Float]

Parameterized Val.Promise

Parameterized Val.Promise

Already parameterized generic Val.Promise

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Range = Float.G.Range[Float]

Specialized range

Specialized range

Already parameterized generic range

Inherited from
Containers
Source
Containers.scala
type Result = Val.Result[Float]

Parameterized Val.Result

Parameterized Val.Result

Already parameterized generic Val.Result

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Set = Val.Set[Float]

Type alias

Type alias

Inherited from
Containers
Source
Containers.scala

Companion alias

Companion alias

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala
type Stream = Float.G.Stream[Float]

Specialized stream

Specialized stream

Already parameterized generic stream

Inherited from
Containers
Source
Containers.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
Containers.scala