public final class PropertiesDiff extends Object
PropertiesDiff
is an implementation to come up with a difference
between two String based Maps. This difference gives answer to questions like
what has been added, removed and changed between left and right hand properties.Modifier and Type | Class and Description |
---|---|
static class |
PropertiesDiff.Builder
Builder for PropertiesDiff . |
static class |
PropertiesDiff.PropertyChange
Class representing a change in a property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areEqual()
Check if given left and right hand side properties are equal.
|
static PropertiesDiff.Builder |
builder()
Gets a
PropertiesDiff.Builder for PropertiesDiff . |
Map<String,String> |
getAdded()
Gets the added properties.
|
Map<String,PropertiesDiff.PropertyChange> |
getChanged()
Gets the changed properties.
|
Map<String,String> |
getCommon()
Gets the common properties.
|
Map<String,String> |
getDeleted()
Gets the deleted properties.
|
Map<String,String> |
getRemoved()
Gets the removed properties.
|
String |
toString() |
public Map<String,PropertiesDiff.PropertyChange> getChanged()
public boolean areEqual()
public static PropertiesDiff.Builder builder()
PropertiesDiff.Builder
for PropertiesDiff
.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.