com.github.longdt.vertxservice.util.ImmutableSet 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.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ImmutableSet implements Shareable {
private final Set data;
private ImmutableSet(Set data) {
this.data = data;
}
public static ImmutableSet of(Set data) {
return new ImmutableSet<>(data);
}
public Set unwrap() {
return data;
}
@Override
public ImmutableSet copy() {
return new ImmutableSet<>(new HashSet<>(data));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy