Class TypeCompatibilityUtils
- java.lang.Object
-
- com.google.errorprone.bugpatterns.TypeCompatibilityUtils
-
public final class TypeCompatibilityUtils extends Object
Logical utility methods to answer the question: Are these two types "compatible" with each other, in the context of an equality check.i.e.: It is possible that an object of one type could be equal to an object of the other type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeCompatibilityUtils.TypeCompatibilityReport
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeCompatibilityUtils
allOn()
TypeCompatibilityUtils.TypeCompatibilityReport
compatibilityOfTypes(com.sun.tools.javac.code.Type receiverType, com.sun.tools.javac.code.Type argumentType, VisitorState state)
static TypeCompatibilityUtils
fromFlags(ErrorProneFlags flags)
-
-
-
Method Detail
-
fromFlags
public static TypeCompatibilityUtils fromFlags(ErrorProneFlags flags)
-
allOn
public static TypeCompatibilityUtils allOn()
-
compatibilityOfTypes
public TypeCompatibilityUtils.TypeCompatibilityReport compatibilityOfTypes(com.sun.tools.javac.code.Type receiverType, com.sun.tools.javac.code.Type argumentType, VisitorState state)
-
-