|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
java.sql.Date
JML specification for Date.
| 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 | |
Date(int year,
int month,
int day)
Deprecated. |
|
Date(long date)
|
|
| Model Method Summary |
| 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 |
getHours()
Deprecated. |
int |
getMinutes()
Deprecated. |
int |
getSeconds()
Deprecated. |
void |
setHours(int i)
Deprecated. |
void |
setMinutes(int i)
Deprecated. |
void |
setSeconds(int i)
Deprecated. |
void |
setTime(long date)
|
String |
toString()
|
static Date |
valueOf(String s)
|
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, getDate, getDay, getMonth, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setMonth, setYear, 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 Date(int year,
int month,
int day)
public Date(long date)
| Method Detail |
public int getHours()
getHours in class Datepublic int getMinutes()
getMinutes in class Datepublic int getSeconds()
getSeconds in class Datepublic void setHours(int i)
setHours in class Datepublic void setMinutes(int i)
setMinutes in class Datepublic void setSeconds(int i)
setSeconds in class Datepublic void setTime(long date)
setTime in class Datepublic String toString()
toString in class Datepublic static Date 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 | ||||||||||