public class

TypeConstrainer

extends Object
java.lang.Object
   ↳ com.google.gwt.user.rebind.rpc.TypeConstrainer

Class Overview

This class defines the method constrainTypeBy(JClassType, JClassType).

Summary

Public Constructors
TypeConstrainer(TypeOracle typeOracle)
Public Methods
JClassType constrainTypeBy(JClassType subType, JClassType superType)
Return a subtype of subType that includes all values in both subType and superType.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TypeConstrainer (TypeOracle typeOracle)

Public Methods

public JClassType constrainTypeBy (JClassType subType, JClassType superType)

Return a subtype of subType that includes all values in both subType and superType. The returned type must have the same base type as subType. If there are definitely no such values, return null.