|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mvp.Model
caltool.schedule.Duration
public class Duration
Duration is the time length of a scheduled item, in hours and minutes. The miniumn duration value is 1 minute. The maximum is 999 houus.
Field Summary |
---|
Fields inherited from class mvp.Model |
---|
view |
Constructor Summary | |
---|---|
Duration()
Construct an empty duration value. |
|
Duration(int hours,
int minutes)
Construct a duration from the given hours and minutes. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Define equality for this as componentwise equality. |
int |
hashCode()
Define the hash code for this as the sum of the components. |
boolean |
isEmpty()
Return true if this is an empty duration, indicated by both hours and minutes = 0. |
java.lang.String |
toString()
Return the string representation of this. |
Methods inherited from class mvp.Model |
---|
dump, exit, getView, setView |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Duration()
public Duration(int hours, int minutes)
Method Detail |
---|
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |