All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.muserver.openapi.OpenApiUtils Maven / Gradle / Ivy

The newest version!
package io.muserver.openapi;

import java.util.*;

class OpenApiUtils {

    private OpenApiUtils() {}

    static  Map immutable(Map map) {
        if (map == null) {
            return null;
        }
        return Collections.unmodifiableMap(new HashMap<>(map));
    }

    static  List immutable(List list) {
        if (list == null) {
            return null;
        }
        return Collections.unmodifiableList(new ArrayList<>(list));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy