01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.providers.util;
07:
08: import java.util.Comparator;
09: import java.lang.Integer;
10:
11: public class IntegerStringComparator implements Comparator {
12:
13: public int compare(Object o1, Object o2) {
14:
15: int i1 = Integer.parseInt(o1.toString());
16: int i2 = Integer.parseInt(o2.toString());
17:
18: return (i1 - i2);
19: }
20:
21: }
|