/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bitfield = other.__isset_bitfield; this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
public boolean equals(IntString that) { if (that == null) return false; boolean this_present_myint = true; boolean that_present_myint = true; if (this_present_myint || that_present_myint) { if (!(this_present_myint && that_present_myint)) return false; if (this.myint != that.myint) return false; } boolean this_present_myString = true && this.isSetMyString(); boolean that_present_myString = true && that.isSetMyString(); if (this_present_myString || that_present_myString) { if (!(this_present_myString && that_present_myString)) return false; if (!this.myString.equals(that.myString)) return false; } boolean this_present_underscore_int = true; boolean that_present_underscore_int = true; if (this_present_underscore_int || that_present_underscore_int) { if (!(this_present_underscore_int && that_present_underscore_int)) return false; if (this.underscore_int != that.underscore_int) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_myint = true; list.add(present_myint); if (present_myint) list.add(myint); boolean present_myString = true && (isSetMyString()); list.add(present_myString); if (present_myString) list.add(myString); boolean present_underscore_int = true; list.add(present_underscore_int); if (present_underscore_int) list.add(underscore_int); 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 MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetMyString()).compareTo(other.isSetMyString()); if (lastComparison != 0) { return lastComparison; if (isSetMyString()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, other.myString); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, IntString struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMyint()) { optionals.set(0); } if (struct.isSetMyString()) { optionals.set(1); } if (struct.isSetUnderscore_int()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetMyint()) { oprot.writeI32(struct.myint); } if (struct.isSetMyString()) { oprot.writeString(struct.myString); } if (struct.isSetUnderscore_int()) { oprot.writeI32(struct.underscore_int); } }
/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bitfield = other.__isset_bitfield; this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bitfield = other.__isset_bitfield; this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bitfield = other.__isset_bitfield; this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bitfield = other.__isset_bitfield; this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
/** * Performs a deep copy on <i>other</i>. */ public IntString(IntString other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.myint = other.myint; if (other.isSetMyString()) { this.myString = other.myString; } this.underscore_int = other.underscore_int; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_myint = true; builder.append(present_myint); if (present_myint) builder.append(myint); boolean present_myString = true && (isSetMyString()); builder.append(present_myString); if (present_myString) builder.append(myString); boolean present_underscore_int = true; builder.append(present_underscore_int); if (present_underscore_int) builder.append(underscore_int); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_myint = true; builder.append(present_myint); if (present_myint) builder.append(myint); boolean present_myString = true && (isSetMyString()); builder.append(present_myString); if (present_myString) builder.append(myString); boolean present_underscore_int = true; builder.append(present_underscore_int); if (present_underscore_int) builder.append(underscore_int); return builder.toHashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_myint = true; list.add(present_myint); if (present_myint) list.add(myint); boolean present_myString = true && (isSetMyString()); list.add(present_myString); if (present_myString) list.add(myString); boolean present_underscore_int = true; list.add(present_underscore_int); if (present_underscore_int) list.add(underscore_int); 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 MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } 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 MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } 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 MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } 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 MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case MYINT: return isSetMyint(); case MY_STRING: return isSetMyString(); case UNDERSCORE_INT: return isSetUnderscore_int(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_myint = true; builder.append(present_myint); if (present_myint) builder.append(myint); boolean present_myString = true && (isSetMyString()); builder.append(present_myString); if (present_myString) builder.append(myString); boolean present_underscore_int = true; builder.append(present_underscore_int); if (present_underscore_int) builder.append(underscore_int); return builder.toHashCode(); }