Package com.caplin.transformer.module
Class ObjectStatus
- java.lang.Object
-
- com.caplin.transformer.module.ObjectStatus
-
public class ObjectStatus extends java.lang.Object
Represents the status of an object in the Transformer's cache.
-
-
Constructor Summary
Constructors Constructor Description ObjectStatus(ServiceStatus serviceStatus, java.lang.String description)
Create a new objectStatus with the provided ServiceStatus and description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
Description of the status of the object in the cache.ServiceStatus
getServiceStatus()
The status of the object in the cache.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ObjectStatus
public ObjectStatus(ServiceStatus serviceStatus, java.lang.String description)
Create a new objectStatus with the provided ServiceStatus and description- Parameters:
serviceStatus
- the ServiceStatus to be publisheddescription
- an optional (null accepted) description of this status
-
-
Method Detail
-
getServiceStatus
public ServiceStatus getServiceStatus()
The status of the object in the cache.- Returns:
- the status of the object in the Transformer's cache, as provided by the data service or module(s) contributing to the object.
-
getDescription
public java.lang.String getDescription()
Description of the status of the object in the cache.- Returns:
- A brief description of the status of the object, or null if no description.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-