Example usage for org.eclipse.jdt.internal.compiler.lookup Scope MORE_GENERIC

List of usage examples for org.eclipse.jdt.internal.compiler.lookup Scope MORE_GENERIC

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup Scope MORE_GENERIC.

Prototype

int MORE_GENERIC

To view the source code for org.eclipse.jdt.internal.compiler.lookup Scope MORE_GENERIC.

Click Source Link

Usage

From source file:org.eclipse.jdt.internal.compiler.lookup.Scope.java

License:Open Source License

public static int compareTypes(TypeBinding left, TypeBinding right) {
    if (left.isCompatibleWith(right))
        return Scope.EQUAL_OR_MORE_SPECIFIC;
    if (right.isCompatibleWith(left))
        return Scope.MORE_GENERIC;
    return Scope.NOT_RELATED;
}