/** * @return {@code true} if this linked notebook has a business ID. */ public static boolean isBusinessNotebook(LinkedNotebook linkedNotebook) { return linkedNotebook.isSetBusinessId(); } }
/** * Helper method to list business notebooks synchronously * * @return * @throws EDAMUserException * @throws EDAMSystemException * @throws TException * @throws EDAMNotFoundException */ @Override public List<LinkedNotebook> listNotebooks() throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { List<LinkedNotebook> linkedNotebooks = new ArrayList<LinkedNotebook>(); for (LinkedNotebook notebook : super.listNotebooks()) { if (notebook.isSetBusinessId()) { linkedNotebooks.add(notebook); } } return linkedNotebooks; }
/** * Helper method to list business notebooks synchronously * * @return * @throws EDAMUserException * @throws EDAMSystemException * @throws TException * @throws EDAMNotFoundException */ @Override public List<LinkedNotebook> listNotebooks() throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { List<LinkedNotebook> linkedNotebooks = new ArrayList<LinkedNotebook>(); for (LinkedNotebook notebook : super.listNotebooks()) { if (notebook.isSetBusinessId()) { linkedNotebooks.add(notebook); } } return linkedNotebooks; }
if (isSetBusinessId()) { if (!first) sb.append(", "); sb.append("businessId:");
if (isSetBusinessId()) { if (!first) sb.append(", "); sb.append("businessId:");
lastComparison = Boolean.valueOf(isSetBusinessId()).compareTo(typedOther.isSetBusinessId()); if (lastComparison != 0) { return lastComparison; if (isSetBusinessId()) { lastComparison = TBaseHelper.compareTo(this.businessId, typedOther.businessId); if (lastComparison != 0) { return lastComparison;
lastComparison = Boolean.valueOf(isSetBusinessId()).compareTo(typedOther.isSetBusinessId()); if (lastComparison != 0) { return lastComparison; if (isSetBusinessId()) { lastComparison = TBaseHelper.compareTo(this.businessId, typedOther.businessId); if (lastComparison != 0) { return lastComparison;
boolean this_present_businessId = true && this.isSetBusinessId(); boolean that_present_businessId = true && that.isSetBusinessId(); if (this_present_businessId || that_present_businessId) { if (!(this_present_businessId && that_present_businessId))
boolean this_present_businessId = true && this.isSetBusinessId(); boolean that_present_businessId = true && that.isSetBusinessId(); if (this_present_businessId || that_present_businessId) { if (!(this_present_businessId && that_present_businessId))
if (isSetBusinessId()) { oprot.writeFieldBegin(BUSINESS_ID_FIELD_DESC); oprot.writeI32(this.businessId);
if (isSetBusinessId()) { oprot.writeFieldBegin(BUSINESS_ID_FIELD_DESC); oprot.writeI32(this.businessId);