org.pdfsam.console.business.dto
Class WorkDoneDataModel
java.lang.Object
org.pdfsam.console.business.dto.WorkDoneDataModel
- All Implemented Interfaces:
- java.io.Serializable
public class WorkDoneDataModel
- extends java.lang.Object
- implements java.io.Serializable
Percentage of work done
- Author:
- Andrea Vacondio
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
INDETERMINATE
public static final int INDETERMINATE
- See Also:
- Constant Field Values
MAX_PERGENTAGE
public static final int MAX_PERGENTAGE
- See Also:
- Constant Field Values
WorkDoneDataModel
public WorkDoneDataModel()
getPercentage
public int getPercentage()
- Returns:
- the percentage
setPercentageIndeterminate
public void setPercentageIndeterminate()
- sets the percentage to indeterminate
setPercentageMax
public void setPercentageMax()
- sets the percentage to the max value
setPercentage
public void setPercentage(int percentage)
- Parameters:
percentage
- the percentage to set (0 to MAX_PERCENTAGE or -1 to set the percentage indeterminate)
resetPercentage
public void resetPercentage()
- reset the percentage
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)