219220221222223224225226
public void copyFrom(SearchResponse message) { setQuery(message.getQuery()); setTotalResults(message.getTotalResults()); clearDigests(); for (Digest field : message.getDigests()) { addDigests(new DigestImpl(field)); } }
257258259260261262263
} } @Override public DigestImpl getDigests(int n) { return new DigestImpl(digests.get(n)); }
262263264265266267268
return new DigestImpl(digests.get(n)); } @Override public void setDigests(int n, Digest message) { this.digests.set(n, new DigestImpl(message)); }
272273274275276277278
return digests.size(); } @Override public void addDigests(Digest message) { this.digests.add(new DigestImpl(message)); }