public class ProjectDescriptionDiff extends Object
ProjectDescription were modified.| Constructor and Description |
|---|
ProjectDescriptionDiff(ProjectDescription original)
Create a
ProjectDescriptionDiff that uses a copy of the specified
description as its source. |
| Modifier and Type | Method and Description |
|---|---|
ProjectDescription |
getOriginal()
Return the original
ProjectDescription that is being tracked. |
void |
ifApplicationNameChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
applicationName is different on the
original source project description than the specified project description. |
void |
ifArtifactIdChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
artifactId is different on the original
source project description than the specified project description. |
void |
ifBaseDirectoryChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
baseDirectory is different on the
original source project description than the specified project description. |
void |
ifBuildSystemChanged(ProjectDescription current,
BiConsumer<BuildSystem,BuildSystem> consumer)
Calls the specified consumer if the
buildSystem is different on the
original source project description than the specified project description. |
void |
ifDescriptionChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
description is different on the
original source project description than the specified project description. |
void |
ifGroupIdChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
groupId is different on the original
source project description than the specified project description. |
void |
ifLanguageChanged(ProjectDescription current,
BiConsumer<Language,Language> consumer)
Calls the specified consumer if the
language is different on the original
source project description than the specified project description. |
void |
ifNameChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
name is different on the original
source project description than the specified project description. |
void |
ifPackageNameChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
packageName is different on the
original source project description than the specified project description. |
void |
ifPackagingChanged(ProjectDescription current,
BiConsumer<Packaging,Packaging> consumer)
Calls the specified consumer if the
packaging is different on the original
source project description than the specified project description. |
void |
ifPlatformVersionChanged(ProjectDescription current,
BiConsumer<Version,Version> consumer)
Calls the specified consumer if the
platformVersion is different on the
original source project description than the specified project description. |
void |
ifVersionChanged(ProjectDescription current,
BiConsumer<String,String> consumer)
Calls the specified consumer if the
version is different on the original
source project description than the specified project description. |
public ProjectDescriptionDiff(ProjectDescription original)
ProjectDescriptionDiff that uses a copy of the specified
description as its source.original - the description to copy as the sourcepublic ProjectDescription getOriginal()
ProjectDescription that is being tracked.public void ifPlatformVersionChanged(ProjectDescription current, BiConsumer<Version,Version> consumer)
platformVersion is different on the
original source project description than the specified project description.current - the project description to test againstconsumer - to call if the property has changedpublic void ifBuildSystemChanged(ProjectDescription current, BiConsumer<BuildSystem,BuildSystem> consumer)
buildSystem is different on the
original source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifPackagingChanged(ProjectDescription current, BiConsumer<Packaging,Packaging> consumer)
packaging is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifLanguageChanged(ProjectDescription current, BiConsumer<Language,Language> consumer)
language is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifGroupIdChanged(ProjectDescription current, BiConsumer<String,String> consumer)
groupId is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifArtifactIdChanged(ProjectDescription current, BiConsumer<String,String> consumer)
artifactId is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifVersionChanged(ProjectDescription current, BiConsumer<String,String> consumer)
version is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifNameChanged(ProjectDescription current, BiConsumer<String,String> consumer)
name is different on the original
source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifDescriptionChanged(ProjectDescription current, BiConsumer<String,String> consumer)
description is different on the
original source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifApplicationNameChanged(ProjectDescription current, BiConsumer<String,String> consumer)
applicationName is different on the
original source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifPackageNameChanged(ProjectDescription current, BiConsumer<String,String> consumer)
packageName is different on the
original source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedpublic void ifBaseDirectoryChanged(ProjectDescription current, BiConsumer<String,String> consumer)
baseDirectory is different on the
original source project description than the specified project description.current - the description to test againstconsumer - to call if the property has changedCopyright © 2021 Pivotal Software, Inc.. All rights reserved.