|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 Date
public int getDay()
getDay
in class Date
public int getMonth()
getMonth
in class Date
public int getYear()
getYear
in class Date
public void setDate(int Param0)
setDate
in class Date
public void setMonth(int Param0)
setMonth
in class Date
public void setYear(int Param0)
setYear
in class Date
public void setTime(long time)
setTime
in class Date
public String toString()
toString
in class Date
public 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 |