@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(); }
/** 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(); }
/** * 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; }