public boolean equals(LazyMap that) { if (that == null) return false; boolean this_present_keysOnly = true && this.isSetKeysOnly(); boolean that_present_keysOnly = true && that.isSetKeysOnly(); if (this_present_keysOnly || that_present_keysOnly) { if (!(this_present_keysOnly && that_present_keysOnly)) return false; if (!this.keysOnly.equals(that.keysOnly)) return false; } boolean this_present_fullMap = true && this.isSetFullMap(); boolean that_present_fullMap = true && that.isSetFullMap(); if (this_present_fullMap || that_present_fullMap) { if (!(this_present_fullMap && that_present_fullMap)) return false; if (!this.fullMap.equals(that.fullMap)) return false; } return true; }
public boolean equals(LazyMap that) { if (that == null) return false; boolean this_present_keysOnly = true && this.isSetKeysOnly(); boolean that_present_keysOnly = true && that.isSetKeysOnly(); if (this_present_keysOnly || that_present_keysOnly) { if (!(this_present_keysOnly && that_present_keysOnly)) return false; if (!this.keysOnly.equals(that.keysOnly)) return false; } boolean this_present_fullMap = true && this.isSetFullMap(); boolean that_present_fullMap = true && that.isSetFullMap(); if (this_present_fullMap || that_present_fullMap) { if (!(this_present_fullMap && that_present_fullMap)) return false; if (!this.fullMap.equals(that.fullMap)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public LazyMap(LazyMap other) { if (other.isSetKeysOnly()) { Set<String> __this__keysOnly = new HashSet<String>(); for (String other_element : other.keysOnly) { __this__keysOnly.add(other_element); } this.keysOnly = __this__keysOnly; } if (other.isSetFullMap()) { Map<String,String> __this__fullMap = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.fullMap.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__fullMap_copy_key = other_element_key; String __this__fullMap_copy_value = other_element_value; __this__fullMap.put(__this__fullMap_copy_key, __this__fullMap_copy_value); } this.fullMap = __this__fullMap; } }
/** * Performs a deep copy on <i>other</i>. */ public LazyMap(LazyMap other) { if (other.isSetKeysOnly()) { Set<String> __this__keysOnly = new HashSet<String>(); for (String other_element : other.keysOnly) { __this__keysOnly.add(other_element); } this.keysOnly = __this__keysOnly; } if (other.isSetFullMap()) { Map<String,String> __this__fullMap = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.fullMap.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__fullMap_copy_key = other_element_key; String __this__fullMap_copy_value = other_element_value; __this__fullMap.put(__this__fullMap_copy_key, __this__fullMap_copy_value); } this.fullMap = __this__fullMap; } }
@Override public String toString() { StringBuilder sb = new StringBuilder("LazyMap("); boolean first = true; if (isSetKeysOnly()) { sb.append("keysOnly:"); if (this.keysOnly == null) { sb.append("null"); } else { sb.append(this.keysOnly); } first = false; } if (isSetFullMap()) { if (!first) sb.append(", "); sb.append("fullMap:"); if (this.fullMap == null) { sb.append("null"); } else { sb.append(this.fullMap); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("LazyMap("); boolean first = true; if (isSetKeysOnly()) { sb.append("keysOnly:"); if (this.keysOnly == null) { sb.append("null"); } else { sb.append(this.keysOnly); } first = false; } if (isSetFullMap()) { if (!first) sb.append(", "); sb.append("fullMap:"); if (this.fullMap == null) { sb.append("null"); } else { sb.append(this.fullMap); } first = false; } sb.append(")"); return sb.toString(); }
public int compareTo(LazyMap other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; LazyMap typedOther = (LazyMap)other; lastComparison = Boolean.valueOf(isSetKeysOnly()).compareTo(typedOther.isSetKeysOnly()); if (lastComparison != 0) { return lastComparison; } if (isSetKeysOnly()) { lastComparison = TBaseHelper.compareTo(this.keysOnly, typedOther.keysOnly); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFullMap()).compareTo(typedOther.isSetFullMap()); if (lastComparison != 0) { return lastComparison; } if (isSetFullMap()) { lastComparison = TBaseHelper.compareTo(this.fullMap, typedOther.fullMap); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(LazyMap other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; LazyMap typedOther = (LazyMap)other; lastComparison = Boolean.valueOf(isSetKeysOnly()).compareTo(typedOther.isSetKeysOnly()); if (lastComparison != 0) { return lastComparison; } if (isSetKeysOnly()) { lastComparison = TBaseHelper.compareTo(this.keysOnly, typedOther.keysOnly); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFullMap()).compareTo(typedOther.isSetFullMap()); if (lastComparison != 0) { return lastComparison; } if (isSetFullMap()) { lastComparison = TBaseHelper.compareTo(this.fullMap, typedOther.fullMap); if (lastComparison != 0) { return lastComparison; } } return 0; }
if (isSetKeysOnly()) { oprot.writeFieldBegin(KEYS_ONLY_FIELD_DESC);
if (isSetKeysOnly()) { oprot.writeFieldBegin(KEYS_ONLY_FIELD_DESC);