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

org.mapfish.print.SetsUtils Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
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