Mercurial > projects > dwt2
comparison org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/InternalJob.d @ 35:634e4380db78
delegate compareTo from opCmp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 23 Mar 2009 18:28:04 +0100 |
parents | 52184e4b815c |
children | c73c01191fea |
comparison
equal
deleted
inserted
replaced
34:a8a838017920 | 35:634e4380db78 |
---|---|
189 /* (on-Javadoc) | 189 /* (on-Javadoc) |
190 * @see java.lang.Comparable#compareTo(java.lang.Object) | 190 * @see java.lang.Comparable#compareTo(java.lang.Object) |
191 */ | 191 */ |
192 public final int compareTo(Object otherJob) { | 192 public final int compareTo(Object otherJob) { |
193 return (cast(InternalJob) otherJob).startTime >= startTime ? 1 : -1; | 193 return (cast(InternalJob) otherJob).startTime >= startTime ? 1 : -1; |
194 } | |
195 public final override int opCmp( Object object ){ | |
196 return compareTo( object ); | |
194 } | 197 } |
195 | 198 |
196 /* (non-Javadoc) | 199 /* (non-Javadoc) |
197 * @see Job#done(IStatus) | 200 * @see Job#done(IStatus) |
198 */ | 201 */ |