app-toolkit/common/src/test/java/androidx/collection/SafeIterableMapTest.java
@SafeVarargs
    private static <K> SafeIterableMap<K, Boolean> mapOf(K... keys) {
        SafeIterableMap<K, Boolean> map = new SafeIterableMap<>();
        for (K key : keys) {
            map.putIfAbsent(key, true);
        }
        return map;
    }
// for most operations we don't care about values, so we create map from key to true
for most operations we don't care about values, so we create map from key to true
for most operations we don ' t care about values so we create map from key to true
@SafeVarargs
    private static <K> SafeIterableMap<K, Boolean> mapOf(K... keys) {
        SafeIterableMap<K, Boolean> map = new SafeIterableMap<>();
        for (K key : keys) {
            map.putIfAbsent(key, true);
        }
        return map;
    }
@ SafeVarargs private static < K > SafeIterableMap < K , Boolean > mapOf ( K ... keys ) { SafeIterableMap < K , Boolean > map = new SafeIterableMap < > ( ) ; for ( K key : keys ) { map . putIfAbsent ( key , true ) ; } return map ; }
for most operations we don't care about values, so we create map from key to true
for most operations we don ' t care about values so we create map from key to true