Returns a non-null Set of the objects stored in this CDOMObject for the given ListKey. The List is converted to a Set to ensure that each entry in the List is only occurs once. This is used because the loading system cannot guarantee "Set" behavior (cannot guarantee uniqueness), and a specific infr
(ListKey<T> key)
| 591 | * given key. |
| 592 | */ |
| 593 | public final <T extends Comparable<T>> Set<T> getUniqueListFor(ListKey<T> key) |
| 594 | { |
| 595 | if (listChar == null) |
| 596 | { |
| 597 | return new HashSet<>(); |
| 598 | } |
| 599 | List<T> list = listChar.getListFor(key); |
| 600 | if (list == null) |
| 601 | { |
| 602 | return new HashSet<>(); |
| 603 | } |
| 604 | return new LinkedHashSet<>(list); |
| 605 | } |
| 606 | |
| 607 | public final String getListAsString(ListKey<?> key) |
| 608 | { |
no test coverage detected