@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_uuid = true && (isSetUuid()); list.add(present_uuid); if (present_uuid) list.add(uuid); boolean present_sender = true && (isSetSender()); list.add(present_sender); if (present_sender) list.add(sender); boolean present_eventData = true && (isSetEventData()); list.add(present_eventData); if (present_eventData) list.add(eventData); boolean present_createTime = true; list.add(present_createTime); if (present_createTime) list.add(createTime); boolean present_version = true; list.add(present_version); if (present_version) list.add(version); return list.hashCode(); }
boolean this_present_eventData = true && this.isSetEventData(); boolean that_present_eventData = true && that.isSetEventData(); if (this_present_eventData || that_present_eventData) { if (!(this_present_eventData && that_present_eventData))
/** 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 UUID: return isSetUuid(); case SENDER: return isSetSender(); case EVENT_DATA: return isSetEventData(); case CREATE_TIME: return isSetCreateTime(); case VERSION: return isSetVersion(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetEventData()).compareTo(other.isSetEventData()); if (lastComparison != 0) { return lastComparison; if (isSetEventData()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventData, other.eventData); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public EndpointEvent(EndpointEvent other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetUuid()) { this.uuid = other.uuid; } if (other.isSetSender()) { this.sender = other.sender; } if (other.isSetEventData()) { this.eventData = org.apache.thrift.TBaseHelper.copyBinary(other.eventData); } this.createTime = other.createTime; this.version = other.version; }
optionals.set(1); if (struct.isSetEventData()) { optionals.set(2); oprot.writeBinary(struct.sender); if (struct.isSetEventData()) { oprot.writeBinary(struct.eventData);