org.mapfish.print.SetsUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of print-lib Show documentation
Show all versions of print-lib Show documentation
Library for generating PDFs and images from online webmapping services
package org.mapfish.print;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* Some utilities for Sets.
*/
public final class SetsUtils {
private SetsUtils() {
}
/**
* Create a HashSet with the given initial values.
*
* @param values The values
* @param The type.
*/
@SafeVarargs
public static Set create(final T... values) {
Set result = new HashSet<>(values.length);
Collections.addAll(result, values);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy