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