@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_description = true && (isSetDescription()); list.add(present_description); if (present_description) list.add(description); boolean present_locationUri = true && (isSetLocationUri()); list.add(present_locationUri); if (present_locationUri) list.add(locationUri); boolean present_createTime = true && (isSetCreateTime()); list.add(present_createTime); if (present_createTime) list.add(createTime); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public Catalog(Catalog other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetDescription()) { this.description = other.description; } if (other.isSetLocationUri()) { this.locationUri = other.locationUri; } this.createTime = other.createTime; }
/** 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 NAME: return isSetName(); case DESCRIPTION: return isSetDescription(); case LOCATION_URI: return isSetLocationUri(); case CREATE_TIME: return isSetCreateTime(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(other.isSetLocationUri()); if (lastComparison != 0) { return lastComparison; if (isSetLocationUri()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, other.locationUri); if (lastComparison != 0) {
boolean this_present_locationUri = true && this.isSetLocationUri(); boolean that_present_locationUri = true && that.isSetLocationUri(); if (this_present_locationUri || that_present_locationUri) { if (!(this_present_locationUri && that_present_locationUri))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Catalog struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetDescription()) { optionals.set(1); } if (struct.isSetLocationUri()) { optionals.set(2); } if (struct.isSetCreateTime()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetDescription()) { oprot.writeString(struct.description); } if (struct.isSetLocationUri()) { oprot.writeString(struct.locationUri); } if (struct.isSetCreateTime()) { oprot.writeI32(struct.createTime); } }