public class PercentageOfWorkDoneChangedEvent extends AbstractNotificationEvent
| Modifier and Type | Field and Description |
|---|---|
static BigDecimal |
MAX_PERGENTAGE |
static BigDecimal |
UNDETERMINED |
| Constructor and Description |
|---|
PercentageOfWorkDoneChangedEvent(BigDecimal percentage,
NotifiableTaskMetadata taskMetadata)
creates and event with the given percentage
|
PercentageOfWorkDoneChangedEvent(NotifiableTaskMetadata taskMetadata)
creates and event with percentage zero.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getPercentage() |
boolean |
isUndetermined() |
void |
setPercentage(BigDecimal percentage)
Sets the percentage for this event
|
String |
toString() |
getEventTimestamp, getNotifiableTaskMetadatapublic static final BigDecimal UNDETERMINED
public static final BigDecimal MAX_PERGENTAGE
public PercentageOfWorkDoneChangedEvent(NotifiableTaskMetadata taskMetadata)
taskMetadata - public PercentageOfWorkDoneChangedEvent(BigDecimal percentage, NotifiableTaskMetadata taskMetadata)
percentage - taskMetadata - public BigDecimal getPercentage()
public final void setPercentage(BigDecimal percentage)
percentage - public boolean isUndetermined()
public String toString()
toString in class AbstractNotificationEventCopyright © 2015. All Rights Reserved.