Get a collection of all values set for this flag. This is for flags that can be set multiple times. If the flag was not user-set, then the collection contains only the default value (if defined). @return a Collection of the supplied values.
()
| 536 | * @return a <code>Collection</code> of the supplied values. |
| 537 | */ |
| 538 | public List<T> getValues() { |
| 539 | final List<T> result; |
| 540 | if (isSet()) { |
| 541 | result = mParameter; |
| 542 | } else { |
| 543 | result = new ArrayList<>(); |
| 544 | if (mParameterDefault != null) { |
| 545 | result.add(mParameterDefault); |
| 546 | } |
| 547 | } |
| 548 | return Collections.unmodifiableList(result); |
| 549 | } |
| 550 | |
| 551 | void reset() { |
| 552 | mParameter = new ArrayList<>(); |