Float.Custom.Data.Calculable

abstract class Calculable[A <: Opaque.Float](typeName: String) extends Float.Custom.Data.Ordered[A] with _methods[A]

Custom Calculable Data elements cannot be treated as numbers, but they support addition, subtraction with its own kind, and multiplication and division by primitives.

The best example of Data.Calculable type is Time.Length:

var tl : Time.Length = 1.Hour - 10.Minutes + 20.Seconds

tl.tp          // Prints: 50 mins 20 secs

(tl / 5).tp    // Prints: 10 mins 4 secs

(tl * 5).tp    // Prints: 4 hours 11 mins 40 secs

Stream operation "sum" is also valid for Data.Calculable

Source
Calculable.scala
trait _methods[A]
trait _methods[A]
trait _methods[A]
trait Given.VoidTag[A]
trait Given.DocTag[A]
class Given.TypeTag[A]
class java.lang.Object
trait scala.Matchable
class Any

Alias

@scala.annotation.targetName("Stream")
type ~ = Float.G.~[A]

Specialized stream

Specialized stream

Already parameterized generic stream

Inherited from
Containers
Source
__.scala
@scala.annotation.targetName("Stream")

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala
@scala.annotation.targetName("Range")
type <> = Float.G.<>[A]

Specialized range

Specialized range

Already parameterized generic range

Inherited from
Containers
Source
__.scala
@scala.annotation.targetName("Pack")
type >< = Float.G.><[A]

Specialized pack

Specialized pack

Already parameterized generic immutable collection

Inherited from
Containers
Source
__.scala
@scala.annotation.targetName("Pack")

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala

Specialized buffer

Specialized buffer

Already parameterized generic buffer

Inherited from
Containers
Source
__.scala

Specialized collection

Specialized collection

Already parameterized generic collection

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala

Specialized functions

Specialized functions

Already parameterized set of generic functions

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

Specialized indexed collection

Specialized indexed collection

Already parameterized generic indexed collection

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala
type Lookup[B] = Lookup[A, B]

Specialized lookup collection

Specialized lookup collection

Already parameterized generic lookup collection

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

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

Specialized option

Specialized option

Already parameterized generic option

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala

Parameterized J.Ordering

Parameterized J.Ordering

Already parameterized generic J.Ordering

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

Specialized property

Specialized property

Already parameterized generic property

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala
type Promise = Promise[A]

Parameterized Val.Promise

Parameterized Val.Promise

Already parameterized generic Val.Promise

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala
type Result = Result[A]

Parameterized Val.Result

Parameterized Val.Result

Already parameterized generic Val.Result

Inherited from
Containers
Source
__.scala

Type companion

Type companion

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala

Type alias

Type alias

Shortcut to Collection.StableSet

Inherited from
Containers
Source
__.scala

Companion alias

Companion alias

Holds methods to construct type instances

Inherited from
Containers
Source
__.scala

Def

def doc(v: A): Doc

Type to Doc

Type to Doc

Override this method to provide type custom Doc implementation

Inherited from
Companion
Source
Companion.scala
inline def emptyArray: Array[A]

Empty array

Empty array

Returns singleton scala.Array.emptyFloatArray

Inherited from
Containers
Source
__.scala
override def isVoid(v: A): Boolean
Definition Classes
Inherited from
Type
Source
__.scala
@scala.annotation.threadUnsafe
final lazy val math: Float.G.Math[A]
@scala.annotation.threadUnsafe
final lazy val ordering: Float.G.Math.Ordering[A]
Inherited from
Ordered
Source
Ordered.scala
def tag(v: A): String

Type to String

Type to String

Override this method to provide type custom convertion to String

Inherited from
Companion
Source
Companion.scala