Class Matchers.Returns

  • All Implemented Interfaces:
    Matcher<java.lang.reflect.Method>, java.io.Serializable
    Enclosing class:
    Matchers

    private static class Matchers.Returns
    extends AbstractMatcher<java.lang.reflect.Method>
    implements java.io.Serializable
    • Constructor Summary

      Constructors 
      Constructor Description
      Returns​(Matcher<? super java.lang.Class<?>> returnType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      boolean matches​(java.lang.reflect.Method m)
      Returns true if this matches t, false otherwise.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • returnType

        private final Matcher<? super java.lang.Class<?>> returnType
    • Constructor Detail

      • Returns

        public Returns​(Matcher<? super java.lang.Class<?>> returnType)
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Method m)
        Description copied from interface: Matcher
        Returns true if this matches t, false otherwise.
        Specified by:
        matches in interface Matcher<java.lang.reflect.Method>
      • equals

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

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

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