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

com.github.longdt.vertxservice.util.ImmutableMap Maven / Gradle / Ivy

Go to download

A lightweight replacement for vertx-service-proxy. This library is highly optimized for vertx java

There is a newer version: 1.1.1
Show newest version
package com.github.longdt.vertxservice.util;

import io.vertx.core.shareddata.Shareable;

import java.util.HashMap;
import java.util.Map;

public class ImmutableMap implements Shareable {
    private final Map data;

    private ImmutableMap(Map data) {
        this.data = data;
    }

    public static  ImmutableMap of(Map data) {
        return new ImmutableMap<>(data);
    }

    public Map unwrap() {
        return data;
    }

    @Override
    public ImmutableMap copy() {
        return new ImmutableMap<>(new HashMap<>(data));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy