Package com.google.inject.matcher
Class Matchers.Returns
- java.lang.Object
-
- com.google.inject.matcher.AbstractMatcher<java.lang.reflect.Method>
-
- com.google.inject.matcher.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
-
-
Field Summary
Fields Modifier and Type Field Description private Matcher<? super java.lang.Class<?>>returnTypeprivate static longserialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()booleanmatches(java.lang.reflect.Method m)Returnstrueif this matchest,falseotherwise.java.lang.StringtoString()-
Methods inherited from class com.google.inject.matcher.AbstractMatcher
and, or
-
-
-
-
Field Detail
-
returnType
private final Matcher<? super java.lang.Class<?>> returnType
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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:MatcherReturnstrueif this matchest,falseotherwise.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-