Class Equals

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object wanted  
    • Constructor Summary

      Constructors 
      Constructor Description
      Equals​(java.lang.Object wanted)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String describe​(java.lang.Object object)  
      boolean equals​(java.lang.Object o)  
      protected java.lang.Object getWanted()  
      int hashCode()  
      boolean matches​(java.lang.Object actual)
      Informs if this matcher accepts the given argument.
      java.lang.String toString()  
      java.lang.String toStringWithType()
      Returns more verbose description of the object which include type information
      boolean typeMatches​(java.lang.Object target)
      Checks if target target has matching type.
      • Methods inherited from class java.lang.Object

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

      • wanted

        private final java.lang.Object wanted
    • Constructor Detail

      • Equals

        public Equals​(java.lang.Object wanted)
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object actual)
        Description copied from interface: ArgumentMatcher
        Informs if this matcher accepts the given argument.

        The method should never assert if the argument doesn't match. It should only return false.

        See the example in the top level javadoc for ArgumentMatcher

        Specified by:
        matches in interface ArgumentMatcher<java.lang.Object>
        Parameters:
        actual - the argument
        Returns:
        true if this matcher accepts the given argument.
      • toString

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

        private java.lang.String describe​(java.lang.Object object)
      • getWanted

        protected final java.lang.Object getWanted()
      • equals

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

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