public int compareTo(HibariException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; HibariException typedOther = (HibariException) other; lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetWhat()).compareTo(typedOther.isSetWhat()); if (lastComparison != 0) { return lastComparison; } if (isSetWhat()) { lastComparison = TBaseHelper.compareTo(this.what, typedOther.what); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { lastComparison = TBaseHelper.compareTo(this.why, typedOther.why); if (lastComparison != 0) { return lastComparison; } } return 0; }