class DecidedByEquality[A] extends Equality[A]
This class is part of the Scalactic “explicitly DSL”. Please
see the documentation for Explicitly for an overview of
the explicitly DSL.
Instances of this class are returned via the decided by <an Equality>
syntax, and enables afterBeing to be invoked on it. Here's an example, given an
Equality[String] named myStringEquality:
result should equal ("hello") (decided by myStringEquality afterBeing lowerCased)
- Source
- Explicitly.scala
- Alphabetic
- By Inheritance
- DecidedByEquality
- Equality
- Equivalence
- AnyRef
- Any
- 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 ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def afterBeing(uniformity: Uniformity[A]): NormalizingEquality[A]
This method enables syntax such as the following, given an
Equality[String]namedmyStringEquality:This method enables syntax such as the following, given an
Equality[String]namedmyStringEquality:result should equal ("hello") (decided by myStringEquality afterBeing lowerCased) ^- uniformity
A
Uniformitywith which to normalize objects of typeAbefore comparing them for equality using theEquality[A]passed to this object's constructor.
- def areEqual(a: A, b: Any): Boolean
Indicates whether the objects passed as
aandbare equal by delegating to theareEqualmethod of theEquality[T]passed to this class's constructor.Indicates whether the objects passed as
aandbare equal by delegating to theareEqualmethod of theEquality[T]passed to this class's constructor.- a
a left-hand-side object being compared with another (right-hand-side one) for equality (e.g.,
a == b)- b
a right-hand-side object being compared with another (left-hand-side one) for equality (e.g.,
a == b)- returns
true if the passed objects are "equal," as defined by this
Equalityinstance
- Definition Classes
- DecidedByEquality → Equality
- final def areEquivalent(a: A, b: A): Boolean
A final implementation of the
areEquivalentmethod ofEquivalencethat just passesaandbtoareEqualand returns the result.A final implementation of the
areEquivalentmethod ofEquivalencethat just passesaandbtoareEqualand returns the result.This method enables any
Equalityto be used where anEquivalenceis needed, such as the implicit enabling methods ofTypeCheckedTripleEqualsandConversionCheckedTripleEquals.- a
a left-hand value being compared with another, right-hand, value for equality (e.g.,
a == b)- b
a right-hand value being compared with another, left-hand, value for equality (e.g.,
a == b)- returns
true if the passed objects are "equal," as defined by the
areEqualmethod of thisEqualityinstance
- Definition Classes
- Equality → Equivalence
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated