public boolean equals(TMapTypeEntry that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_keyTypePtr = true;
    boolean that_present_keyTypePtr = true;
    if (this_present_keyTypePtr || that_present_keyTypePtr) {
      if (!(this_present_keyTypePtr && that_present_keyTypePtr))
        return false;
      if (this.keyTypePtr != that.keyTypePtr)
        return false;
    }

    boolean this_present_valueTypePtr = true;
    boolean that_present_valueTypePtr = true;
    if (this_present_valueTypePtr || that_present_valueTypePtr) {
      if (!(this_present_valueTypePtr && that_present_valueTypePtr))
        return false;
      if (this.valueTypePtr != that.valueTypePtr)
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TMapTypeEntry.java