X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.workbench.search%2Fsrc%2Forg%2Fsimantics%2Fworkbench%2Fsearch%2FSearchResult.java;h=cfc004b280e92f955244160441f881713ba6ed9d;hp=b34ac750dcf882678759c9f16e71caa80f0a15fa;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/SearchResult.java b/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/SearchResult.java index b34ac750d..cfc004b28 100644 --- a/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/SearchResult.java +++ b/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/SearchResult.java @@ -1,61 +1,61 @@ -package org.simantics.workbench.search; - -import java.util.ArrayList; -import java.util.List; - - -/** - * Search result. - * - * @author Marko Luukkainen - */ -public class SearchResult { - - public List columns; - public List rows; - - public SearchResult() { - columns = new ArrayList(); - rows = new ArrayList(); - } - - public SearchResult(List columns) { - this.columns = columns; - rows = new ArrayList(); - } - - public void addColumn(SearchResultColumn column) { - columns.add(column); - } - - public void addRow(SearchResultRow row) { - rows.add(row); - } - - public List getColumns() { - return columns; - } - - public List getRows() { - return rows; - } - - public int columnCount() { - return columns.size(); - } - - public int rowCount() { - return rows.size(); - } - - public SearchResult subset(int start, int end) { - SearchResult copy = new SearchResult(columns); - copy.rows = rows.subList(start, end); - return copy; - } - - public boolean isEmpty() { - return rows.isEmpty(); - } - -} +package org.simantics.workbench.search; + +import java.util.ArrayList; +import java.util.List; + + +/** + * Search result. + * + * @author Marko Luukkainen + */ +public class SearchResult { + + public List columns; + public List rows; + + public SearchResult() { + columns = new ArrayList(); + rows = new ArrayList(); + } + + public SearchResult(List columns) { + this.columns = columns; + rows = new ArrayList(); + } + + public void addColumn(SearchResultColumn column) { + columns.add(column); + } + + public void addRow(SearchResultRow row) { + rows.add(row); + } + + public List getColumns() { + return columns; + } + + public List getRows() { + return rows; + } + + public int columnCount() { + return columns.size(); + } + + public int rowCount() { + return rows.size(); + } + + public SearchResult subset(int start, int end) { + SearchResult copy = new SearchResult(columns); + copy.rows = rows.subList(start, end); + return copy; + } + + public boolean isEmpty() { + return rows.isEmpty(); + } + +}