private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof IntString) return this.equals((IntString)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case MYINT: return getMyint(); case MY_STRING: return getMyString(); case UNDERSCORE_INT: return getUnderscore_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(); }
public IntString deepCopy() { return new IntString(this); }
/** * 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; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
lastComparison = Boolean.valueOf(isSetMyint()).compareTo(other.isSetMyint()); if (lastComparison != 0) { return lastComparison; if (isSetMyint()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, other.myint); if (lastComparison != 0) { 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) { lastComparison = Boolean.valueOf(isSetUnderscore_int()).compareTo(other.isSetUnderscore_int()); if (lastComparison != 0) { return lastComparison; if (isSetUnderscore_int()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, other.underscore_int); if (lastComparison != 0) {
public Object getFieldValue(_Fields field) { switch (field) { case MYINT: return getMyint(); case MY_STRING: return getMyString(); case UNDERSCORE_INT: return getUnderscore_int(); } throw new IllegalStateException(); }
/** * 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; } }
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; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set87 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sIntString = new HashSet<IntString>(2*_set87.size); IntString _elem88; for (int _i89 = 0; _i89 < _set87.size; ++_i89) { _elem88 = new IntString(); _elem88.read(iprot); struct.sIntString.add(_elem88); } } struct.setSIntStringIsSet(true); } if (incoming.get(1)) { struct.aString = iprot.readString(); struct.setAStringIsSet(true); } } }
@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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SetIntString struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.sIntString != null) { oprot.writeFieldBegin(S_INT_STRING_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.sIntString.size())); for (IntString _iter85 : struct.sIntString) { _iter85.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.aString != null) { oprot.writeFieldBegin(A_STRING_FIELD_DESC); oprot.writeString(struct.aString); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public Object getFieldValue(_Fields field) { switch (field) { case MYINT: return Integer.valueOf(getMyint()); case MY_STRING: return getMyString(); case UNDERSCORE_INT: return Integer.valueOf(getUnderscore_int()); } throw new IllegalStateException(); }
List<IntString> __this__lintString = new ArrayList<IntString>(other.lintString.size()); for (IntString other_element : other.lintString) { __this__lintString.add(new IntString(other_element));
@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(); }