Trait

com.wix.accord.dsl

OrderingOps

Related Doc: package dsl

Permalink

trait OrderingOps extends AnyRef

Provides a DSL for types with a corresponding implmentation of scala.math.Ordering.

Implementation note: All methods here should only require scala.math.PartialOrdering, but the canonical implicits are defined in the Ordering companion and would therefore not be imported by default at the call site. This seems like a worthwhile trade-off.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrderingOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <[T](other: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.LesserThan[T]

    Permalink

    Generates a validator that succeeds only if the provided value is less than the specified bound.

  4. def <=[T](other: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.LesserThanOrEqual[T]

    Permalink

    Generates a validator that succeeds if the provided value is less than or equal to the specified bound.

  5. def ==[T](other: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.EquivalentTo[T]

    Permalink

    Generates a validator that succeeds if the provided value is exactly equal to the specified value.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def >[T](other: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.GreaterThan[T]

    Permalink

    Generates a validator that succeeds only if the provided value is greater than the specified bound.

  8. def >=[T](other: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.GreaterThanOrEqual[T]

    Permalink

    Generates a validator that succeeds if the provided value is greater than or equal to the specified bound.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def between[T](lowerBound: T, upperBound: T)(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.InRangeInclusive[T]

    Permalink

    Generates a validator that succeeds if the provided value is between (inclusive) the specified bounds.

    Generates a validator that succeeds if the provided value is between (inclusive) the specified bounds. The method exclusive is provided to specify an exclusive upper bound.

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def snippet: String

    Permalink
    Attributes
    protected
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def within[T](range: NumericRange[T])(implicit arg0: Ordering[T], arg1: Nullability[T]): combinators.InRange[T]

    Permalink

    Generates a validator that succeeds if the provided value is within the specified range.

  28. def within(range: Range): combinators.InRange[Int]

    Permalink

    Generates a validator that succeeds if the provided value is within the specified range.

Inherited from AnyRef

Inherited from Any

Ungrouped