Gen
object Gen
General Utilities
Gen is fully exported to scalqa root, thus all members and aliases of Gen can be called with or without "Gen." prefix.
For example:
val v: Gen.Number.Percent = ???
// is same as
val v: Gen.Percent = ???
// is same as
val v: Percent = ???
- Source
- __.scala
class Object
trait Matchable
class Any
Member
class Request
Type Request objects establish some concept
Application classes and traits can have implicit conversions from Type Request type to local definitions
Using universal instead of local values can reduce and clarify code
Time().roundTo(1.Second, UP)
// vs.
Time().roundTo(1.Second, Def.Rounding.Up)
Time().roundTo(1.Minute)(using DOWN)
// vs.
Time().roundTo(1.Minute, Def.Rounding.Down)
val l: Long = MAX
// vs.
val l: Long = Long.MaxValue
new Fx.Label("XYZ") {
alignment = RIGHT
// vs.
alignment = Fx.Pos.CenterRight
}
new Fx.Pane.Split{
orientation = VERTICAL
// vs.
orientation = Fx.Orientation.Vertical
}
new Fx.Menu {
items += SEPARATOR
// vs.
items += Fx.Menu.Item.separator_*
}
class Request
Type Request objects establish some concept
Application classes and traits can have implicit conversions from Type Request type to local definitions
Using universal instead of local values can reduce and clarify code
Time().roundTo(1.Second, UP)
// vs.
Time().roundTo(1.Second, Def.Rounding.Up)
Time().roundTo(1.Minute)(using DOWN)
// vs.
Time().roundTo(1.Minute, Def.Rounding.Down)
val l: Long = MAX
// vs.
val l: Long = Long.MaxValue
new Fx.Label("XYZ") {
alignment = RIGHT
// vs.
alignment = Fx.Pos.CenterRight
}
new Fx.Pane.Split{
orientation = VERTICAL
// vs.
orientation = Fx.Orientation.Vertical
}
new Fx.Menu {
items += SEPARATOR
// vs.
items += Fx.Menu.Item.separator_*
}