|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.core.behavioral.observer.data.StatusData
public class StatusData
Immutable Observer event data intended to be used in notifying status information.
Field Summary | |
---|---|
static StatusData |
COMPLETED
Reusable StatusData instance corresponding to a
Completed state. |
static StatusData |
FAILED
Reusable StatusData instance corresponding to a
Failed event. |
static StatusData |
STARTED
Reusable StatusData instance corresponding to a
Started event. |
Constructor Summary | |
---|---|
StatusData(StatusData aStatusData)
Copy constructor. |
|
StatusData(Status aStatus,
String aMessage)
Constructor that creates a StatusData instance from a Status and message. |
Method Summary | |
---|---|
boolean |
equals(Object anObject)
|
String |
getMessage()
Returns message associated with this StatusData. |
Status |
getStatus()
Returns the Status value associated with this StatusData from the set of predefined possible values Status . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final StatusData STARTED
StatusData
instance corresponding to a
Started event.
public static final StatusData FAILED
StatusData
instance corresponding to a
Failed event.
public static final StatusData COMPLETED
StatusData
instance corresponding to a
Completed state.
Constructor Detail |
---|
public StatusData(Status aStatus, String aMessage)
aStatus
- Status of the taskaMessage
- Description of the current theStatus
IllegalArgumentException
- "'aStatus' must not be null"
IllegalArgumentException
- "'aMessage' must not be null"public StatusData(StatusData aStatusData)
aStatusData
- Existing StatusData
IllegalArgumentException
- "'aStatus' must not be null"
IllegalArgumentException
- "'aMessage' must not be null"Method Detail |
---|
public String getMessage()
public Status getStatus()
Status
.
Status
.public boolean equals(Object anObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |