trait Scale[A, B] extends ScaleOneWay[A, B]
The most common Scale is invertible (a two way function)
- Source
- scale.scala
- Alphabetic
- By Inheritance
- Scale
- ScaleOneWay
- AnyRef
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(a: A): B
- Definition Classes
- ScaleOneWay
- abstract def contains(a: A): Boolean
true if the argument can be applied to a domain
true if the argument can be applied to a domain
- Definition Classes
- ScaleOneWay
- abstract def inv(b: B): A
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def %(a: A): B
alias for apply which is a kind of evaluator
alias for apply which is a kind of evaluator
- Definition Classes
- ScaleOneWay
- def +(other: String): String
- def ->[B](y: B): (Scale[A, B], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyIf(t: Boolean, f: (Scale[A, B]) => Scale[A, B]): Scale[A, B]
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Scale[A, B]) => Boolean)(f: (Scale[A, B]) => Scale[A, B]): Scale[A, B]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def elementOf(xs: Set[Scale[A, B]]): Boolean
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Scale[A, B]) => Boolean, msg: => Any): Scale[A, B]
- def ensuring(cond: (Scale[A, B]) => Boolean): Scale[A, B]
- def ensuring(cond: Boolean, msg: => Any): Scale[A, B]
- def ensuring(cond: Boolean): Scale[A, B]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- def get(a: A): Option[B]
first check if the argument can be applied to a domain then apply the scale
first check if the argument can be applied to a domain then apply the scale
- Definition Classes
- ScaleOneWay
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invOption(b: B): Option[A]
invOption uses inv with exception handling (divide by zero is ugly).
invOption uses inv with exception handling (divide by zero is ugly). This method can be overridden for specific case speedup
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Scale[A, B]) => Boolean): Option[Scale[A, B]]
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Scale[A, B]) => Boolean): Option[Scale[A, B]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Scale[A, B]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sideEffect(f: (Scale[A, B]) => Unit): Scale[A, B]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Scale[A, B]) => Boolean): Option[Scale[A, B]]
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Scale[A, B]
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: Scale[A, B]): Bound[Scale[A, B]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def ?>(f: (Scale[A, B]) => Boolean): Option[Scale[A, B]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (Scale[A, B]) => B): B
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toDrxAny[Scale[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Scale[A, B], B)
- Implicit
- This member is added by an implicit conversion from Scale[A, B] toArrowAssoc[Scale[A, B]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.