public boolean equals(Decimal that) { if (that == null) return false; boolean this_present_signum = true; boolean that_present_signum = true; if (this_present_signum || that_present_signum) { if (!(this_present_signum && that_present_signum)) return false; if (this.signum != that.signum) return false; } boolean this_present_scale = true; boolean that_present_scale = true; if (this_present_scale || that_present_scale) { if (!(this_present_scale && that_present_scale)) return false; if (this.scale != that.scale) return false; } boolean this_present_magnitude = true && this.isSetMagnitude(); boolean that_present_magnitude = true && that.isSetMagnitude(); if (this_present_magnitude || that_present_magnitude) { if (!(this_present_magnitude && that_present_magnitude)) return false; if (!this.magnitude.equals(that.magnitude)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Decimal(Decimal other) { __isset_bitfield = other.__isset_bitfield; this.signum = other.signum; this.scale = other.scale; if (other.isSetMagnitude()) { this.magnitude = org.apache.thrift.TBaseHelper.copyBinary(other.magnitude); ; } }
/** 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 SIGNUM: return isSetSignum(); case SCALE: return isSetScale(); case MAGNITUDE: return isSetMagnitude(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetMagnitude()).compareTo(other.isSetMagnitude()); if (lastComparison != 0) { return lastComparison; if (isSetMagnitude()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.magnitude, other.magnitude); if (lastComparison != 0) {