name.neuhalfen.projects.crypto.internal.SetUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bouncy-gpg Show documentation
Show all versions of bouncy-gpg Show documentation
Make using Bouncy Castle with OpenPGP fun again!
The newest version!
package name.neuhalfen.projects.crypto.internal;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public final class SetUtils {
private SetUtils() {/* util class */}
@SafeVarargs
public static Set unmodifiableSet(T... elements) {
final HashSet set = new HashSet<>(elements.length);
Collections.addAll(set, elements);
return Collections.unmodifiableSet(set);
}
}