Sets the results list to be the given single value. Note: If there is more than one result value, the others may be added by using #addResult. @param result non-null; result value
(TypeBearer result)
| 467 | * @param result {@code non-null;} result value |
| 468 | */ |
| 469 | protected final void setResult(TypeBearer result) { |
| 470 | if (result == null) { |
| 471 | throw new NullPointerException("result == null"); |
| 472 | } |
| 473 | |
| 474 | results[0] = result; |
| 475 | resultCount = 1; |
| 476 | } |
| 477 | |
| 478 | /** |
| 479 | * Adds an additional element to the list of results. |