class OrdinalBoundedDomain[A, B] extends Scale[A, B]
- Source
- scale.scala
- Alphabetic
- By Inheritance
- OrdinalBoundedDomain
- Scale
- ScaleOneWay
- AnyRef
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
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
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toany2stringadd[OrdinalBoundedDomain[A, B]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (OrdinalBoundedDomain[A, B], B)
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toArrowAssoc[OrdinalBoundedDomain[A, B]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(x: A): B
- Definition Classes
- OrdinalBoundedDomain → ScaleOneWay
- def applyIf(t: Boolean, f: (OrdinalBoundedDomain[A, B]) => OrdinalBoundedDomain[A, B]): OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (OrdinalBoundedDomain[A, B]) => Boolean)(f: (OrdinalBoundedDomain[A, B]) => OrdinalBoundedDomain[A, B]): OrdinalBoundedDomain[A, B]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[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 contains(x: A): Boolean
true if the argument can be applied to a domain
true if the argument can be applied to a domain
- Definition Classes
- OrdinalBoundedDomain → ScaleOneWay
- val domain: Bound[A]
- def elementOf(xs: Set[OrdinalBoundedDomain[A, B]]): Boolean
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (OrdinalBoundedDomain[A, B]) => Boolean, msg: => Any): OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toEnsuring[OrdinalBoundedDomain[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (OrdinalBoundedDomain[A, B]) => Boolean): OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toEnsuring[OrdinalBoundedDomain[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toEnsuring[OrdinalBoundedDomain[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toEnsuring[OrdinalBoundedDomain[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- 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
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toStringFormat[OrdinalBoundedDomain[A, B]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- 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 inv(y: B): A
- Definition Classes
- OrdinalBoundedDomain → Scale
- 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
- Definition Classes
- Scale
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (OrdinalBoundedDomain[A, B]) => Boolean): Option[OrdinalBoundedDomain[A, B]]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[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: (OrdinalBoundedDomain[A, B]) => Boolean): Option[OrdinalBoundedDomain[A, B]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (OrdinalBoundedDomain[A, B]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- val range: IndexedSeq[B]
- def sideEffect(f: (OrdinalBoundedDomain[A, B]) => Unit): OrdinalBoundedDomain[A, B]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (OrdinalBoundedDomain[A, B]) => Boolean): Option[OrdinalBoundedDomain[A, B]]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[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: OrdinalBoundedDomain[A, B]
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: OrdinalBoundedDomain[A, B]): Bound[OrdinalBoundedDomain[A, B]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toBoundOps[OrdinalBoundedDomain[A, B]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[OrdinalBoundedDomain[A, B]] is in scope.
- Definition Classes
- BoundOps
- 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: (OrdinalBoundedDomain[A, B]) => Boolean): Option[OrdinalBoundedDomain[A, B]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[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: (OrdinalBoundedDomain[A, B]) => B): B
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toDrxAny[OrdinalBoundedDomain[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): (OrdinalBoundedDomain[A, B], B)
- Implicit
- This member is added by an implicit conversion from OrdinalBoundedDomain[A, B] toArrowAssoc[OrdinalBoundedDomain[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.