Record Class AbstractMockChecker.Reason
java.lang.Object
java.lang.Record
com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
- Record Components:
unmockableClass- A Type object representing the class that should not be mocked.reason- The reason this class should not be mocked, which may be as simple as "it is annotated to forbid mocking" but may also provide a suggested workaround.
- Enclosing class:
AbstractMockChecker<T extends Annotation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static AbstractMockChecker.Reasonreason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.com.sun.tools.javac.code.TypeReturns the value of theunmockableClassrecord component.
-
Constructor Details
-
Reason
Creates an instance of aReasonrecord class.- Parameters:
unmockableClass- the value for theunmockableClassrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
unmockableClass
public com.sun.tools.javac.code.Type unmockableClass()Returns the value of theunmockableClassrecord component.- Returns:
- the value of the
unmockableClassrecord component
-
reason
-