litesoft
Diff Revisions
49
vs
50
for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/SimpleDateRange.java
|
@@ -91,6 +91,7 @@ |
91 |
91 |
|
return (mFromInclusive == null) || (mToExclusive == null) || mFromInclusive.before( mToExclusive ); |
92 |
92 |
|
} |
93 |
93 |
|
|
|
94 |
+ |
@Override |
94 |
95 |
|
public boolean equals( Object o ) |
95 |
96 |
|
{ |
96 |
97 |
|
return (this == o) || // |
|
@@ -107,6 +108,7 @@ |
107 |
108 |
|
); |
108 |
109 |
|
} |
109 |
110 |
|
|
|
111 |
+ |
@Override |
110 |
112 |
|
public int hashCode() |
111 |
113 |
|
{ |
112 |
114 |
|
return hashCodeEm( calcHashCode( mFromInclusive ), // |
|
@@ -114,6 +116,7 @@ |
114 |
116 |
|
super.hashCode() ); |
115 |
117 |
|
} |
116 |
118 |
|
|
|
119 |
+ |
@Override |
117 |
120 |
|
public int compareTo( SimpleDateRange them ) |
118 |
121 |
|
{ |
119 |
122 |
|
return compareEm( compare( this.getDateRes(), them.getDateRes() ), // |
|
@@ -121,6 +124,7 @@ |
121 |
124 |
|
compare( this.mToExclusive, them.mToExclusive ) ); |
122 |
125 |
|
} |
123 |
126 |
|
|
|
127 |
+ |
@Override |
124 |
128 |
|
public String toString() |
125 |
129 |
|
{ |
126 |
130 |
|
if ( (mFromInclusive == null) && (mToExclusive == null) ) |