@Override public int compareTo(LockBlockResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetLockId()).compareTo(other.isSetLockId()); if (lastComparison != 0) { return lastComparison; } if (isSetLockId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockId, other.lockId); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetBlockPath()).compareTo(other.isSetBlockPath()); if (lastComparison != 0) { return lastComparison; } if (isSetBlockPath()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockPath, other.blockPath); if (lastComparison != 0) { return lastComparison; } } return 0; }