Code example for TypeToken

Methods: isAssignableFrom

0
    String getName() {
        return name;
    } 
 
    boolean isAssignableFrom(BindingKey key) {
        return type.isAssignableFrom(key.type) && (name == null || name.equals(key.name));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java