class DeterminedByEquivalence[T] extends Equivalence[T]
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 Equivalence>
syntax, and enables afterBeing to be invoked on it. Here's an example, given an
 Equivalence[String] named myStringEquivalence:
result should equal ("hello") (determined by myStringEquivalence afterBeing lowerCased)
- Source
 - Explicitly.scala
 
- Alphabetic
 - By Inheritance
 
- DeterminedByEquivalence
 - Equivalence
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Instance Constructors
-  new DeterminedByEquivalence(equivalence: Equivalence[T])
 
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(normalization: Normalization[T]): NormalizingEquivalence[T]
      
      
      
This method enables syntax such as the following, given an
Equivalence[String]namedmyStringEquivalence:This method enables syntax such as the following, given an
Equivalence[String]namedmyStringEquivalence:result should equal ("hello") (determined by myStringEquivalence afterBeing lowerCased) ^- normalization
 A
Normalizationwith which to normalize objects of typeTbefore comparing them for equality using theEquivalence[T]passed to this object's constructor.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        areEquivalent(a: T, b: T): Boolean
      
      
      
Indicates whether the objects passed as
aandbare equal by delegating to theareEquivalentmethod of theEquivalence[T]passed to this class's constructor.Indicates whether the objects passed as
aandbare equal by delegating to theareEquivalentmethod of theEquivalence[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
 - DeterminedByEquivalence → Equivalence
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        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()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )