fragment/src/main/java/androidx/fragment/app/FragmentTransitionImpl.java
@SuppressWarnings("WeakerAccess")
    static String findKeyForValue(Map<String, String> map, String value) {
        for (Map.Entry<String, String> entry : map.entrySet()) {
            if (value.equals(entry.getValue())) {
                return entry.getKey();
            }
        }
        return null;
    }
/**
     * Utility to find the String key in {@code map} that maps to {@code value}.
     */
Utility to find the String key in  map that maps to  value.
Utility to find the String key in map that maps to value .
@SuppressWarnings("WeakerAccess")
    static String findKeyForValue(Map<String, String> map, String value) {
        for (Map.Entry<String, String> entry : map.entrySet()) {
            if (value.equals(entry.getValue())) {
                return entry.getKey();
            }
        }
        return null;
    }
@ SuppressWarnings ( "WeakerAccess" ) static String findKeyForValue ( Map < String , String > map , String value ) { for ( Map . Entry < String , String > entry : map . entrySet ( ) ) { if ( value . equals ( entry . getValue ( ) ) ) { return entry . getKey ( ) ; } } return null ; }
Utility to find the String key in {@code map} that maps to {@code value}.
Utility to find the String key in { @code map } that maps to { @code value } .