Example usage for com.google.gwt.dev.asm Type equals

List of usage examples for com.google.gwt.dev.asm Type equals

Introduction

In this page you can find the example usage for com.google.gwt.dev.asm Type equals.

Prototype

public boolean equals(final Object o) 

Source Link

Document

Tests if the given object is equal to this type.

Usage

From source file:com.google.web.bindery.requestfactory.server.RequestFactoryInterfaceValidator.java

License:Apache License

private boolean isAssignable(ErrorContext logger, Type possibleSupertype, Type possibleSubtype) {
    // Fast-path for same type
    if (possibleSupertype.equals(possibleSubtype)) {
        return true;
    }/*from w w  w. j a v  a  2  s. c o m*/

    // Supertype calculation is cached
    List<Type> allSupertypes = getSupertypes(logger, possibleSubtype);
    return allSupertypes.contains(possibleSupertype);
}