Package software.amazon.smithy.diff
Class ChangedMetadata
- java.lang.Object
-
- software.amazon.smithy.diff.ChangedMetadata
-
- All Implemented Interfaces:
FromSourceLocation
public final class ChangedMetadata extends java.lang.Object implements FromSourceLocation
Represents a change in metadata.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getKey()
Gets the key of the metadata that changed.Node
getNewValue()
Gets the new metadata value for this key.Node
getOldValue()
Gets the old metadata value for this key.SourceLocation
getSourceLocation()
Gets the source location of a value.int
hashCode()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Gets the key of the metadata that changed.- Returns:
- Returns the changed key.
-
getOldValue
public Node getOldValue()
Gets the old metadata value for this key.- Returns:
- Returns the value in the old model.
-
getNewValue
public Node getNewValue()
Gets the new metadata value for this key.- Returns:
- Returns the value in the new model.
-
getSourceLocation
public SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-