public int compareTo(DFSHealthReport other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; DFSHealthReport typedOther = (DFSHealthReport) other; lastComparison = Boolean.valueOf(isSetBytesTotal()).compareTo(isSetBytesTotal()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(bytesTotal, typedOther.bytesTotal); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetBytesUsed()).compareTo(isSetBytesUsed()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(bytesUsed, typedOther.bytesUsed); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetBytesRemaining()).compareTo(isSetBytesRemaining()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(bytesRemaining, typedOther.bytesRemaining); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetBytesNonDfs()).compareTo(isSetBytesNonDfs()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(bytesNonDfs, typedOther.bytesNonDfs); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetNumLiveDataNodes()).compareTo(isSetNumLiveDataNodes()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(numLiveDataNodes, typedOther.numLiveDataNodes); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetNumDeadDataNodes()).compareTo(isSetNumDeadDataNodes()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(numDeadDataNodes, typedOther.numDeadDataNodes); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetUpgradeStatus()).compareTo(isSetUpgradeStatus()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(upgradeStatus, typedOther.upgradeStatus); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetHttpPort()).compareTo(isSetHttpPort()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(httpPort, typedOther.httpPort); if (lastComparison != 0) { return lastComparison; } return 0; }