Code example for TypeToken

Methods: toString

0
        return 31 * getType().hashCode() + (getName() != null ? getName().hashCode() : 0);
    } 
 
    @Override 
    public String toString() {
        return getType().toString() + (getName() == null ? "" : '/' + getName());
    } 
 
    TypeToken<?> getType() {
        return type;
    } 
 
    String getName() {
        return name;
    } 
 
    boolean isAssignableFrom(BindingKey key) {
        return type.isAssignableFrom(key.type) && (name == null || name.equals(key.name));
    } 
} 
Experience pair programming with AI  Get Codota for Java