@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_sIntString = true && (isSetSIntString()); list.add(present_sIntString); if (present_sIntString) list.add(sIntString); boolean present_aString = true && (isSetAString()); list.add(present_aString); if (present_aString) list.add(aString); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case S_INT_STRING: return isSetSIntString(); case A_STRING: return isSetAString(); } throw new IllegalStateException(); }
public boolean equals(SetIntString that) { if (that == null) return false; boolean this_present_sIntString = true && this.isSetSIntString(); boolean that_present_sIntString = true && that.isSetSIntString(); if (this_present_sIntString || that_present_sIntString) { if (!(this_present_sIntString && that_present_sIntString)) return false; if (!this.sIntString.equals(that.sIntString)) return false; } boolean this_present_aString = true && this.isSetAString(); boolean that_present_aString = true && that.isSetAString(); if (this_present_aString || that_present_aString) { if (!(this_present_aString && that_present_aString)) return false; if (!this.aString.equals(that.aString)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { Set<IntString> __this__sIntString = new HashSet<IntString>(other.sIntString.size()); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } this.sIntString = __this__sIntString; } if (other.isSetAString()) { this.aString = other.aString; } }
@Override public int compareTo(SetIntString other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(other.isSetSIntString()); if (lastComparison != 0) { return lastComparison; } if (isSetSIntString()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, other.sIntString); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString()); if (lastComparison != 0) { return lastComparison; } if (isSetAString()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSIntString()) { optionals.set(0); } if (struct.isSetAString()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSIntString()) { { oprot.writeI32(struct.sIntString.size()); for (IntString _iter86 : struct.sIntString) { _iter86.write(oprot); } } } if (struct.isSetAString()) { oprot.writeString(struct.aString); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sIntString = true && (isSetSIntString()); builder.append(present_sIntString); if (present_sIntString) builder.append(sIntString); boolean present_aString = true && (isSetAString()); builder.append(present_aString); if (present_aString) builder.append(aString); return builder.toHashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_sIntString = true && (isSetSIntString()); list.add(present_sIntString); if (present_sIntString) list.add(sIntString); boolean present_aString = true && (isSetAString()); list.add(present_aString); if (present_aString) list.add(aString); return list.hashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sIntString = true && (isSetSIntString()); builder.append(present_sIntString); if (present_sIntString) builder.append(sIntString); boolean present_aString = true && (isSetAString()); builder.append(present_aString); if (present_aString) builder.append(aString); return builder.toHashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case S_INT_STRING: return isSetSIntString(); case A_STRING: return isSetAString(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case S_INT_STRING: return isSetSIntString(); case A_STRING: return isSetAString(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case S_INT_STRING: return isSetSIntString(); case A_STRING: return isSetAString(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case S_INT_STRING: return isSetSIntString(); case A_STRING: return isSetAString(); } throw new IllegalStateException(); }
public boolean equals(SetIntString that) { if (that == null) return false; boolean this_present_sIntString = true && this.isSetSIntString(); boolean that_present_sIntString = true && that.isSetSIntString(); if (this_present_sIntString || that_present_sIntString) { if (!(this_present_sIntString && that_present_sIntString)) return false; if (!this.sIntString.equals(that.sIntString)) return false; } boolean this_present_aString = true && this.isSetAString(); boolean that_present_aString = true && that.isSetAString(); if (this_present_aString || that_present_aString) { if (!(this_present_aString && that_present_aString)) return false; if (!this.aString.equals(that.aString)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { Set<IntString> __this__sIntString = new HashSet<IntString>(other.sIntString.size()); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } this.sIntString = __this__sIntString; } if (other.isSetAString()) { this.aString = other.aString; } }
/** * Performs a deep copy on <i>other</i>. */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { Set<IntString> __this__sIntString = new HashSet<IntString>(); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } this.sIntString = __this__sIntString; } if (other.isSetAString()) { this.aString = other.aString; } }
/** * Performs a deep copy on <i>other</i>. */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { Set<IntString> __this__sIntString = new HashSet<IntString>(); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } this.sIntString = __this__sIntString; } if (other.isSetAString()) { this.aString = other.aString; } }
/** * Performs a deep copy on <i>other</i>. */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { Set<IntString> __this__sIntString = new HashSet<IntString>(); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } this.sIntString = __this__sIntString; } if (other.isSetAString()) { this.aString = other.aString; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSIntString()) { optionals.set(0); } if (struct.isSetAString()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSIntString()) { { oprot.writeI32(struct.sIntString.size()); for (IntString _iter86 : struct.sIntString) { _iter86.write(oprot); } } } if (struct.isSetAString()) { oprot.writeString(struct.aString); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sIntString = true && (isSetSIntString()); builder.append(present_sIntString); if (present_sIntString) builder.append(sIntString); boolean present_aString = true && (isSetAString()); builder.append(present_aString); if (present_aString) builder.append(aString); return builder.toHashCode(); }