com.github.longdt.vertxservice.util.ImmutableMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-service4j Show documentation
Show all versions of vertx-service4j Show documentation
A lightweight replacement for vertx-service-proxy. This library is highly optimized for vertx java
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