public final int hashCode() {
    int hashCode = 0;
    if (name != null) {
      hashCode += name.hashCode();
    }
    if (type != null) {
      hashCode += type.hashCode();
    }
    return hashCode;
  }
public final int hashCode()