package com.perforce.spark.search;
import java.util.List;
public class ResultPayload {
private List<ResultDetailed> detailedFilesModels;
private int fileModelCount;
private int lastRow;
private double maxScore;
private int numFound;
public List<ResultDetailed> getDetailedFilesModels() {
return detailedFilesModels;
}
public int getFileModelCount() {
return fileModelCount;
}
public int getLastRow() {
return lastRow;
}
public double getMaxScore() {
return maxScore;
}
public int getNumFound() {
return numFound;
}
public void
setDetailedFilesModels(List<ResultDetailed> detailedFilesModels) {
this.detailedFilesModels = detailedFilesModels;
}
public void setFileModelCount(int fileModelCount) {
this.fileModelCount = fileModelCount;
}
public void setLastRow(int lastRow) {
this.lastRow = lastRow;
}
public void setMaxScore(double maxScore) {
this.maxScore = maxScore;
}
public void setNumFound(int numFound) {
this.numFound = numFound;
}
@Override
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("results: " + fileModelCount + " page (" + lastRow + "/"
+ numFound + ")\n");
for (ResultDetailed p : detailedFilesModels) {
sb.append(p.toString() + "\n");
}
return sb.toString();
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
15139 |
Paul Allen |
Extend p4search options. |
|
|
//guest/paul_allen/p4am/src/main/java/com/perforce/spark/search/SearchPayload.java |
#1
|
15118 |
Paul Allen |
Added P4Search |
|
|