public int compareTo(SessionId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; SessionId typedOther = (SessionId) other; lastComparison = Boolean.valueOf(isSetTos()).compareTo(typedOther.isSetTos()); if (lastComparison != 0) { return lastComparison; } if (isSetTos()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tos, typedOther.tos); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCamiproCookie()).compareTo(typedOther.isSetCamiproCookie()); if (lastComparison != 0) { return lastComparison; } if (isSetCamiproCookie()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.camiproCookie, typedOther.camiproCookie); if (lastComparison != 0) { return lastComparison; } } return 0; }