in java/com/jetbrains/cef/remote/thrift_codegen/MenuItem.java [713:801]
public int compareTo(MenuItem other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetCommand_id(), other.isSetCommand_id());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCommand_id()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.command_id, other.command_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetLabel(), other.isSetLabel());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLabel()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.label, other.label);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetType(), other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetGroup_id(), other.isSetGroup_id());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGroup_id()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.group_id, other.group_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetVisible(), other.isSetVisible());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetVisible()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.visible, other.visible);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetEnabled(), other.isSetEnabled());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEnabled()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.enabled, other.enabled);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetChecked(), other.isSetChecked());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetChecked()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.checked, other.checked);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSub_menu(), other.isSetSub_menu());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSub_menu()) {
lastComparison = com.jetbrains.cef.remote.thrift.TBaseHelper.compareTo(this.sub_menu, other.sub_menu);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}