/** * Constructs a {@code CanonicalSet} for elements of the specified type. * * @param <E> The type of elements in the set. * @param type The type of elements in the set. * @return An initially empty set for elements of the given type. * @since 2.5 */ public static <E> CanonicalSet<E> newInstance(final Class<E> type) { return new CanonicalSet<E>(type); }
/** * Constructs a {@code CanonicalSet} for elements of the specified type. * * @param <E> The type of elements in the set. * @param type The type of elements in the set. * @return An initially empty set for elements of the given type. * * @since 2.5 */ public static <E> CanonicalSet<E> newInstance(final Class<E> type) { return new CanonicalSet<E>(type); }