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

software.amazon.smithy.lsp.project.ProjectChange Maven / Gradle / Ivy

The newest version!
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package software.amazon.smithy.lsp.project;

import java.util.HashSet;
import java.util.Set;

/**
 * File changes to a {@link Project}.
 *
 * @param changedBuildFileUris The uris of changed build files
 * @param createdSmithyFileUris The uris of created Smithy files
 * @param deletedSmithyFileUris The uris of deleted Smithy files
 */
public record ProjectChange(
        Set changedBuildFileUris,
        Set createdSmithyFileUris,
        Set deletedSmithyFileUris
) {
    /**
     * @return An empty and mutable set of project changes
     */
    public static ProjectChange empty() {
        return new ProjectChange(
                new HashSet<>(),
                new HashSet<>(),
                new HashSet<>());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy