@Override public int compareTo(HankBulkResponse other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public List<HankResponse> get_responses() { if (getSetField() == _Fields.RESPONSES) { return (List<HankResponse>)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'responses' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public HankException get_xception() { if (getSetField() == _Fields.XCEPTION) { return (HankException)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'xception' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public boolean equals(HankBulkResponse other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { hcb.append(value); } } return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {