Class UpdatedAssetEvent
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetEvent
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.UpdatedAssetEvent
-
- All Implemented Interfaces:
Serializable
public class UpdatedAssetEvent extends AssetEvent
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdatedAssetEvent()Default constructorUpdatedAssetEvent(UpdatedAssetEvent template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.AssetgetOriginalAsset()Return the original values of the Asset before the update.DategetUpdateTime()Return the time that the asset was updated.inthashCode()Return hash code for this objectvoidsetOriginalAsset(Asset originalAsset)Set up details of the original asset - if available.voidsetUpdateTime(Date updateTime)Set up the time that the asset was updated.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.assetconsumer.events.AssetEvent
getAsset, setAsset
-
Methods inherited from class org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
getEventType, getEventVersionId, setEventType, setEventVersionId
-
-
-
-
Constructor Detail
-
UpdatedAssetEvent
public UpdatedAssetEvent()
Default constructor
-
UpdatedAssetEvent
public UpdatedAssetEvent(UpdatedAssetEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getUpdateTime
public Date getUpdateTime()
Return the time that the asset was updated.- Returns:
- date/time
-
setUpdateTime
public void setUpdateTime(Date updateTime)
Set up the time that the asset was updated.- Parameters:
updateTime- date/time
-
getOriginalAsset
public Asset getOriginalAsset()
Return the original values of the Asset before the update.- Returns:
- original asset values or null
-
setOriginalAsset
public void setOriginalAsset(Asset originalAsset)
Set up details of the original asset - if available.- Parameters:
originalAsset- original asset values.
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classAssetEvent- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classAssetEvent- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classAssetEvent- Returns:
- int hash code
-
-