a-foundation/src/main/java/com/ajjpj/afoundation/collection/immutable/AHashMap.java
public static <K,V> AHashMap<K,V> fromJavaUtilMap(AEquality equality, Map<K,V> map) {
        AHashMap<K,V> result = empty(equality);

        for(Map.Entry<K,V> entry: map.entrySet()) {
            result = result.updated(entry.getKey(), entry.getValue());
        }

        return result;
    }
public static <K,V> AHashMap<K,V> fromJavaUtilMap(AEquality equality, Map<K,V> map) {
        AHashMap<K,V> result = empty(equality);

        for(Map.Entry<K,V> entry: map.entrySet()) {
            result = result.updated(entry.getKey(), entry.getValue());
        }

        return result;
    }
public static < K , V > AHashMap < K , V > fromJavaUtilMap ( AEquality equality , Map < K , V > map ) { AHashMap < K , V > result = empty ( equality ) ; for ( Map . Entry < K , V > entry : map . entrySet ( ) ) { result = result . updated ( entry . getKey ( ) , entry . getValue ( ) ) ; } return result ; }
Returns an AHashMap instance for a given equalityForEquals, initializing it from the contents of a given
<code>java.util.Map</code>.
Returns an AHashMap instance for a given equalityForEquals initializing it from the contents of a given <code > java . util . Map< / code > .