Adds a result to the list.<p>

@param result to be added
774556
public void addResult(CmsResourceTypeStatResult result) {

        if (!m_results.contains(result)) {
            m_results.add(result);
            m_updated = false;
        } else {
            m_results.remove(result);
            m_results.add(result);
            m_updated = true;
        }
    }
98193
def set(self, results):
        
        self.results = list()
        for row in results:
            self.append(row)
242214
protected void processProjectListItem(Map<Integer, String> result, Row row)
   {
      Integer id = row.getInteger("PROJ_ID");
      String name = row.getString("PROJ_NAME");
      result.put(id, name);
   }
677990
protected void processResult(RO result) {
        for (ResultHandler<RO> resultHandler : resultHandlers) {
            resultHandler.handleResult(result);
        }
    }
199628
@Override
    public void add(QueryableEntry entry) {
        if (++resultSize > resultLimit) {
            throw new QueryResultSizeExceededException();
        }

        rows.add(orderAndLimitExpected ? entry : convertEntryToRow(entry));
    }
1305192
@Override
  public FutureResultImpl<T> setResult(T result) {
    this.result = result;
    succeeded = true;
    checkCallHandler();
    return this;
  }
1330267
private void addCrls(final Collection<X509CRL> results) {
        results.forEach(entry -> addCRL(entry.getIssuerX500Principal(), entry));
    }
1027653
protected void addHeapMetrics(Collection<Metric<?>> result) {
        MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();
        result.add(newMemoryMetric("heap.committed", memoryUsage.getCommitted()));
        result.add(newMemoryMetric("heap.init", memoryUsage.getInit()));
        result.add(newMemoryMetric("heap.used", memoryUsage.getUsed()));
        result.add(newMemoryMetric("heap", memoryUsage.getMax()));
    }
572584
protected void displayResult() {

        if (m_thread.getMatchedResources().isEmpty()) {
            m_resultTable.setVisible(false);
            m_infoIntroLayout.setVisible(false);
            m_infoEmptyResult.setVisible(true);
        } else {
            m_resultTable.setVisible(true);
            m_infoIntroLayout.setVisible(false);
            m_infoEmptyResult.setVisible(false);
        }
        m_resultTable.fillTable(A_CmsUI.getCmsObject(), m_thread.getMatchedResources());
        m_searchForm.removeComponent(m_report);
        m_report = null;
    }
1238365
protected void addSingleResult(CmsResultItemBean resultItem, boolean front, boolean showPath) {

        m_types.add(resultItem.getType());
        boolean hasPreview = m_tabHandler.hasPreview(resultItem.getType());
        CmsDNDHandler dndHandler = m_dndHandler;
        if (!m_galleryHandler.filterDnd(resultItem)) {
            dndHandler = null;
        }
        CmsResultListItem listItem = new CmsResultListItem(resultItem, hasPreview, showPath, dndHandler);
        if (resultItem.isPreset()) {
            m_preset = listItem;
        }
        if (hasPreview) {
            listItem.addPreviewClickHandler(new PreviewHandler(resultItem.getPath(), resultItem.getType()));
        }
        CmsUUID structureId = new CmsUUID(resultItem.getClientId());
        listItem.getListItemWidget().addButton(
            new CmsContextMenuButton(structureId, m_contextMenuHandler, AdeContext.gallery));
        listItem.getListItemWidget().addOpenHandler(new OpenHandler<CmsListItemWidget>() {

            public void onOpen(OpenEvent<CmsListItemWidget> event) {

                onContentChange();
            }
        });
        if (m_tabHandler.hasSelectResource()) {
            SelectHandler selectHandler = new SelectHandler(
                resultItem.getPath(),
                structureId,
                resultItem.getRawTitle(),
                resultItem.getType());
            listItem.addSelectClickHandler(selectHandler);

            // this affects both tiled and non-tiled result lists.
            listItem.addDoubleClickHandler(selectHandler);
        }
        m_galleryHandler.processResultItem(listItem);
        if (front) {
            addWidgetToFrontOfList(listItem);
        } else {
            addWidgetToList(listItem);
        }
    }
108045
public void add(Object entity, String name) {
		Result result = new Result(entity, name);
		results.add(result);
	}
870026
public void setResult(T result) {
        lock.lock();
        try {
            if(Objects.equals(expected_result, result))
                super.setResult(result);
        }
        finally {
            lock.unlock();
        }
    }
1345082
protected void addToList(List<IEObjectDescription> descriptions, List<IEObjectDescription> result) {
		result.addAll(descriptions);
	}
913857
public void add(String outcome, double p) {
    outcomes.add(outcome);
    probs.add(new Double(p));
    score += Math.log(p);
  }
109885
protected void addImportResult(CmsAliasImportResult result) {

        String cssClass;
        I_Css css = CmsImportResultList.RESOURCES.css();
        switch (result.getStatus()) {
            case aliasChanged:
                cssClass = css.aliasImportOverwrite();
                break;
            case aliasImportError:
            case aliasParseError:
                cssClass = css.aliasImportError();
                break;
            case aliasNew:
            default:
                cssClass = css.aliasImportOk();
                break;
        }
        m_results.addRow(CmsAliasMessages.messageAliasImportLine(result), result.getMessage(), cssClass);
    }
371162
private List<String> formatResult(Result result, Server server) {
		List<String> resultStrings = new LinkedList<>();

		if (result.getValuePath().isEmpty()) {
			processOneMetric(resultStrings, server, result, result.getValue(), null, null);
		} else {
			processOneMetric(resultStrings, server, result, result.getValue(), tagName, StringUtils.join(result.getValuePath(), '.'));
		}
		return resultStrings;
	}
245506
@Override
    protected void putDumpInfoTo(Map<String, Object> result) {
        if(StringUtils.isNotBlank(this.bodyContent)) {
            result.put(DumpConstants.BODY, this.bodyContent);
        }
    }