Mercurial > projects > dwt2
comparison org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.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 |
comparison
equal
deleted
inserted
replaced
34:a8a838017920 | 35:634e4380db78 |
---|---|
122 if (value !is 0) | 122 if (value !is 0) |
123 return value; | 123 return value; |
124 } | 124 } |
125 // the answer | 125 // the answer |
126 return 42; | 126 return 42; |
127 } | |
128 public final override int opCmp( Object object ){ | |
129 return compareTo( object ); | |
127 } | 130 } |
128 | 131 |
129 private bool isEqual(Object object) { | 132 private bool isEqual(Object object) { |
130 if (object is this) | 133 if (object is this) |
131 return true; | 134 return true; |