Class IndexedDiff


  • public class IndexedDiff
    extends java.lang.Object
    Immutable class modeling the actual and expected elements at a given index.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object actual  
      java.lang.Object expected  
      int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedDiff​(java.lang.Object actual, java.lang.Object expected, int index)
      Create a IndexedDiff.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • actual

        public final java.lang.Object actual
      • expected

        public final java.lang.Object expected
      • index

        public final int index
    • Constructor Detail

      • IndexedDiff

        public IndexedDiff​(java.lang.Object actual,
                           java.lang.Object expected,
                           int index)
        Create a IndexedDiff.
        Parameters:
        actual - the actual value of the diff.
        expected - the expected value of the diff.
        index - the index the diff occurred at.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object