Package software.amazon.smithy.diff
Class ChangedMetadata
java.lang.Object
software.amazon.smithy.diff.ChangedMetadata
- All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation
public final class ChangedMetadata
extends Object
implements software.amazon.smithy.model.FromSourceLocation
Represents a change in metadata.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
Gets the key of the metadata that changed.software.amazon.smithy.model.node.Node
Gets the new metadata value for this key.software.amazon.smithy.model.node.Node
Gets the old metadata value for this key.software.amazon.smithy.model.SourceLocation
int
hashCode()
-
Method Details
-
getKey
Gets the key of the metadata that changed.- Returns:
- Returns the changed key.
-
getOldValue
public software.amazon.smithy.model.node.Node getOldValue()Gets the old metadata value for this key.- Returns:
- Returns the value in the old model.
-
getNewValue
public software.amazon.smithy.model.node.Node getNewValue()Gets the new metadata value for this key.- Returns:
- Returns the value in the new model.
-
getSourceLocation
public software.amazon.smithy.model.SourceLocation getSourceLocation()- Specified by:
getSourceLocation
in interfacesoftware.amazon.smithy.model.FromSourceLocation
-
equals
-
hashCode
public int hashCode()
-