class IndexFactory {

    public static Index newInstance(final String name, final List<String> fields, final boolean unique) {
        final List<IndexKey> keys = createDefaultKeys(requireNonNull(fields));
        return newInstanceWithCustomKeys(name, keys, unique);
    }

    private  IndexFactory();

}