/** * Performs a deep copy on <i>other</i>. */ public InsertEventRequestData(InsertEventRequestData other) { __isset_bitfield = other.__isset_bitfield; this.replace = other.replace; if (other.isSetFilesAdded()) { List<String> __this__filesAdded = new ArrayList<String>(other.filesAdded); this.filesAdded = __this__filesAdded; } if (other.isSetFilesAddedChecksum()) { List<String> __this__filesAddedChecksum = new ArrayList<String>(other.filesAddedChecksum); this.filesAddedChecksum = __this__filesAddedChecksum; } if (other.isSetSubDirectoryList()) { List<String> __this__subDirectoryList = new ArrayList<String>(other.subDirectoryList); this.subDirectoryList = __this__subDirectoryList; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetFilesAdded()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'filesAdded' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** 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 REPLACE: return isSetReplace(); case FILES_ADDED: return isSetFilesAdded(); case FILES_ADDED_CHECKSUM: return isSetFilesAddedChecksum(); case SUB_DIRECTORY_LIST: return isSetSubDirectoryList(); } throw new IllegalStateException(); }
public boolean equals(InsertEventRequestData that) { if (that == null) return false; boolean this_present_filesAdded = true && this.isSetFilesAdded(); boolean that_present_filesAdded = true && that.isSetFilesAdded(); if (this_present_filesAdded || that_present_filesAdded) { if (!(this_present_filesAdded && that_present_filesAdded)) return false; if (!this.filesAdded.equals(that.filesAdded)) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_replace = true && (isSetReplace()); list.add(present_replace); if (present_replace) list.add(replace); boolean present_filesAdded = true && (isSetFilesAdded()); list.add(present_filesAdded); if (present_filesAdded) list.add(filesAdded); boolean present_filesAddedChecksum = true && (isSetFilesAddedChecksum()); list.add(present_filesAddedChecksum); if (present_filesAddedChecksum) list.add(filesAddedChecksum); boolean present_subDirectoryList = true && (isSetSubDirectoryList()); list.add(present_subDirectoryList); if (present_subDirectoryList) list.add(subDirectoryList); return list.hashCode(); }
public boolean equals(InsertEventRequestData that) { if (that == null) return false; boolean this_present_filesAdded = true && this.isSetFilesAdded(); boolean that_present_filesAdded = true && that.isSetFilesAdded(); if (this_present_filesAdded || that_present_filesAdded) { if (!(this_present_filesAdded && that_present_filesAdded)) return false; if (!this.filesAdded.equals(that.filesAdded)) return false; } return true; }
boolean this_present_filesAdded = true && this.isSetFilesAdded(); boolean that_present_filesAdded = true && that.isSetFilesAdded(); if (this_present_filesAdded || that_present_filesAdded) { if (!(this_present_filesAdded && that_present_filesAdded))
/** 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 FILES_ADDED: return isSetFilesAdded(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(other.isSetFilesAdded()); if (lastComparison != 0) { return lastComparison; if (isSetFilesAdded()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, other.filesAdded); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public InsertEventRequestData(InsertEventRequestData other) { if (other.isSetFilesAdded()) { List<String> __this__filesAdded = new ArrayList<String>(); for (String other_element : other.filesAdded) { __this__filesAdded.add(other_element); } this.filesAdded = __this__filesAdded; } }
/** 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 FILES_ADDED: return isSetFilesAdded(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public InsertEventRequestData(InsertEventRequestData other) { if (other.isSetFilesAdded()) { List<String> __this__filesAdded = new ArrayList<String>(); for (String other_element : other.filesAdded) { __this__filesAdded.add(other_element); } this.filesAdded = __this__filesAdded; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_filesAdded = true && (isSetFilesAdded()); builder.append(present_filesAdded); if (present_filesAdded) builder.append(filesAdded); return builder.toHashCode(); }
public int compareTo(InsertEventRequestData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; InsertEventRequestData typedOther = (InsertEventRequestData)other; lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(typedOther.isSetFilesAdded()); if (lastComparison != 0) { return lastComparison; } if (isSetFilesAdded()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, typedOther.filesAdded); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(InsertEventRequestData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; InsertEventRequestData typedOther = (InsertEventRequestData)other; lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(typedOther.isSetFilesAdded()); if (lastComparison != 0) { return lastComparison; } if (isSetFilesAdded()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, typedOther.filesAdded); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetFilesAdded()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'filesAdded' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetFilesAdded()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'filesAdded' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_filesAdded = true && (isSetFilesAdded()); builder.append(present_filesAdded); if (present_filesAdded) builder.append(filesAdded); return builder.toHashCode(); }