|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
java.sql.Time
JML specification for Time.
| Class Specifications |
| Specifications inherited from class Object |
|
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
| Specifications inherited from interface Comparable |
|
instance public invariant ( \forall java.lang.Comparable x; x != null; x.compareTo(x) == 0); instance public invariant ( \forall java.lang.Comparable x, y; x != null&&y != null&&this.definedComparison(x,y)&&this.definedComparison(y,x); this.sgn(x.compareTo(y)) == -this.sgn(y.compareTo(x))); instance public invariant ( \forall int n; n == -1||n == 1; ( \forall java.lang.Comparable x, y, z; x != null&&y != null&&z != null&&this.definedComparison(x,y)&&this.definedComparison(y,z)&&this.definedComparison(x,z); this.sgn(x.compareTo(y)) == n&&this.sgn(y.compareTo(z)) == n ==> this.sgn(x.compareTo(z)) == n)); instance public invariant ( \forall int n; n == -1||n == 1; ( \forall java.lang.Comparable x, y, z; x != null&&y != null&&z != null&&this.definedComparison(x,y)&&this.definedComparison(y,z)&&this.definedComparison(x,z); (this.sgn(x.compareTo(y)) == 0&&this.sgn(y.compareTo(z)) == n||this.sgn(x.compareTo(y)) == n&&this.sgn(y.compareTo(z)) == 0) ==> this.sgn(x.compareTo(z)) == n)); instance public invariant ( \forall java.lang.Comparable x, y, z; x != null&&y != null&&z != null&&this.definedComparison(x,y)&&this.definedComparison(x,z)&&this.definedComparison(y,z); this.sgn(x.compareTo(y)) == 0 ==> this.sgn(x.compareTo(z)) == this.sgn(y.compareTo(z))); |
| Model Field Summary |
| Model fields inherited from class java.lang.Object |
_getClass, objectState, theString |
| Ghost Field Summary | |
static long |
millisInDay
|
| Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
| Field Summary |
| Fields inherited from class java.util.Date |
cal, fastTime |
| Constructor Summary | |
Time(int hour,
int minutes,
int second)
Deprecated. |
|
Time(long time)
|
|
| Model Method Summary | |
boolean |
sameTimeOfDay(long t1,
long t2)
return true when t1 and t2 have the same hours, minutes, and seconds. |
| Model methods inherited from class java.lang.Object |
hashValue |
| Model methods inherited from interface java.lang.Comparable |
definedComparison, sgn |
| Method Summary | |
boolean |
equals(nullable Object o)
|
int |
getDate()
Deprecated. |
int |
getDay()
Deprecated. |
int |
getMonth()
Deprecated. |
int |
getYear()
Deprecated. |
void |
setDate(int Param0)
Deprecated. |
void |
setMonth(int Param0)
Deprecated. |
void |
setTime(long time)
|
void |
setYear(int Param0)
Deprecated. |
String |
toString()
|
static Time |
valueOf(String s)
|
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, hashCode, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Ghost Field Detail |
public static final long millisInDay
| Constructor Detail |
public Time(long time)
public Time(int hour,
int minutes,
int second)
| Model Method Detail |
public boolean sameTimeOfDay(long t1,
long t2)
| Method Detail |
public int getDate()
getDate in class Datepublic int getDay()
getDay in class Datepublic int getMonth()
getMonth in class Datepublic int getYear()
getYear in class Datepublic void setDate(int Param0)
setDate in class Datepublic void setMonth(int Param0)
setMonth in class Datepublic void setYear(int Param0)
setYear in class Datepublic void setTime(long time)
setTime in class Datepublic String toString()
toString in class Datepublic static Time valueOf(String s)
public boolean equals(nullable Object o)
equals in class Date
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||