MCPcopy Create free account
hub / github.com/LFYSec/MScan / toMappedSet

Method toMappedSet

src/main/java/pascal/taie/util/collection/Views.java:145–149  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

getElementEntriesMethod · 0.95
getPredsOfMethod · 0.95
getSuccsOfMethod · 0.95
getNodesMethod · 0.95
getPredsOfMethod · 0.95
getSuccsOfMethod · 0.95
getCallersOfMethod · 0.95
getCalleesOfMethod · 0.95
getPredsOfMethod · 0.95
getSuccsOfMethod · 0.95
getPredsOfMethod · 0.95
getSuccsOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected