Given a mapper function, creates an immutable view set for given collection. WARNING: the uniqueness of elements in the resulting set view is guaranteed by given collection c and function mapper, not by the resulting set view itself. @param c the backing collection @param
(
Collection<T> c, Function<T, R> mapper, Predicate<Object> contains)
| 143 | * @return an immutable view set. |
| 144 | */ |
| 145 | public static <T, R> Set<R> toMappedSet( |
| 146 | Collection<T> c, Function<T, R> mapper, Predicate<Object> contains) { |
| 147 | return Collections.unmodifiableSet( |
| 148 | new MappedSetView<>(c, mapper, contains)); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Given a mapper function, creates an immutable view set for |
no outgoing calls
no test coverage detected