Code example for TypeToken

Methods: equals

0
      return false; 
    } 
 
    Key key = (Key) o;
 
    if (!type.equals(key.type)) {
      return false; 
    } 
    if (!name.equals(key.name)) {
      return false; 
    } 
 
    return true; 
  } 
 
  @Override 
  public int hashCode() { 
    int result = name.hashCode();
    result = 31 * result + type.hashCode();
    return result;
Experience pair programming with AI  Get Codota for Java