Bug 265425 [Workbench] Finalize API for Platform constants in org.eclipse.jface.util.Util
bundles/org.eclipse.jface/src/org/eclipse/jface/util/Util.java
*         to be the least possible value. A shorter list is considered less
	 *         than a longer list.
	 */
	public static final int compare(final List left, final List right) {
		if (left == null && right == null) {
			return 0;
		} else if (left == null) {
			return -1;
		} else if (right == null) {
			return 1;
		} else {
			int l = left.size();
			int r = right.size();
			if (l != r) {
				return l - r;
			}
			for (int i = 0; i < l; i++) {
				int compareTo = compare((Comparable) left.get(i),
						(Comparable) right.get(i));
				if (compareTo != 0) {
					return compareTo;
				}
			}
			return 0;
		}
	}
	/**
	 * Tests whether the first array ends with the second array.
	 * 
	 * @param left