Packages

c

cc.drx.Scale

OrdinalBoundedRange

class OrdinalBoundedRange[A, B] extends Scale[A, B]

An Ordinal scale based on an outoutBound

Source
scale.scala
Linear Supertypes
Scale[A, B], ScaleOneWay[A, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrdinalBoundedRange
  2. Scale
  3. ScaleOneWay
  4. AnyRef
  5. Any
Implicitly
  1. by richDrxAny
  2. by DrxBoundOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OrdinalBoundedRange(initDomain: Iterable[A], range: Bound[B])

    initDomain

    initial domain set (this can be empty and will be dynamically non-deterministically from the calls)

    range

    the modulus output values

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toany2stringadd[OrdinalBoundedRange[A, B]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (OrdinalBoundedRange[A, B], B)
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toArrowAssoc[OrdinalBoundedRange[A, B]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def apply(x: A): B
    Definition Classes
    OrdinalBoundedRangeScaleOneWay
  8. def applyIf(t: Boolean, f: (OrdinalBoundedRange[A, B]) => OrdinalBoundedRange[A, B]): OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  9. def applyIf(t: (OrdinalBoundedRange[A, B]) => Boolean)(f: (OrdinalBoundedRange[A, B]) => OrdinalBoundedRange[A, B]): OrdinalBoundedRange[A, B]

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. 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
    OrdinalBoundedRangeScaleOneWay
  13. def domain: IndexedSeq[A]
  14. def elementOf(xs: Set[OrdinalBoundedRange[A, B]]): Boolean
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  15. def ensuring(cond: (OrdinalBoundedRange[A, B]) => Boolean, msg: => Any): OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toEnsuring[OrdinalBoundedRange[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (OrdinalBoundedRange[A, B]) => Boolean): OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toEnsuring[OrdinalBoundedRange[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: => Any): OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toEnsuring[OrdinalBoundedRange[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toEnsuring[OrdinalBoundedRange[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toStringFormat[OrdinalBoundedRange[A, B]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. 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
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def inv(y: B): A
    Definition Classes
    OrdinalBoundedRangeScale
  27. 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
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def noneIf(f: (OrdinalBoundedRange[A, B]) => Boolean): Option[OrdinalBoundedRange[A, B]]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def optionIf(f: (OrdinalBoundedRange[A, B]) => Boolean): Option[OrdinalBoundedRange[A, B]]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  34. def preApply[B](f: (OrdinalBoundedRange[A, B]) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  35. val range: Bound[B]
  36. def sideEffect(f: (OrdinalBoundedRange[A, B]) => Unit): OrdinalBoundedRange[A, B]

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  37. def someIf(f: (OrdinalBoundedRange[A, B]) => Boolean): Option[OrdinalBoundedRange[A, B]]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. val thisAny: OrdinalBoundedRange[A, B]
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  40. def till(maxArg: OrdinalBoundedRange[A, B]): Bound[OrdinalBoundedRange[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 OrdinalBoundedRange[A, B] toBoundOps[OrdinalBoundedRange[A, B]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[OrdinalBoundedRange[A, B]] is in scope.
    Definition Classes
    BoundOps
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def ?>(f: (OrdinalBoundedRange[A, B]) => Boolean): Option[OrdinalBoundedRange[A, B]]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[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

  2. def |>[B](f: (OrdinalBoundedRange[A, B]) => B): B
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toDrxAny[OrdinalBoundedRange[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)

  3. def [B](y: B): (OrdinalBoundedRange[A, B], B)
    Implicit
    This member is added by an implicit conversion from OrdinalBoundedRange[A, B] toArrowAssoc[OrdinalBoundedRange[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.

Inherited from Scale[A, B]

Inherited from ScaleOneWay[A, B]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromOrdinalBoundedRange[A, B] to DrxAny[OrdinalBoundedRange[A, B]]

Inherited by implicit conversion DrxBoundOps fromOrdinalBoundedRange[A, B] to BoundOps[OrdinalBoundedRange[A, B]]

Inherited by implicit conversion any2stringadd fromOrdinalBoundedRange[A, B] to any2stringadd[OrdinalBoundedRange[A, B]]

Inherited by implicit conversion StringFormat fromOrdinalBoundedRange[A, B] to StringFormat[OrdinalBoundedRange[A, B]]

Inherited by implicit conversion Ensuring fromOrdinalBoundedRange[A, B] to Ensuring[OrdinalBoundedRange[A, B]]

Inherited by implicit conversion ArrowAssoc fromOrdinalBoundedRange[A, B] to ArrowAssoc[OrdinalBoundedRange[A, B]]

Ungrouped