Package net.rim.device.api.util

Examples of net.rim.device.api.util.Comparator


   
    /**
     * @return String comparator
     */
    public static Comparator getStringComparator() {
        Comparator comp = new Comparator() {
            public int compare( Object arg0, Object arg1 ) {
                if( arg0 instanceof String && arg1 instanceof String ) {
                    return ( (String) arg0 ).compareTo( (String) arg1 );
                }

View Full Code Here


    final static class SortableVector extends SimpleSortingVector {
        /**
         * Creates a new SortableVector object
         */
        public SortableVector() {
            setSortComparator(new Comparator() {
                public int compare(final Object o1, final Object o2) {
                    final OrderRecord r1 = (OrderRecord) o1;
                    final OrderRecord r2 = (OrderRecord) o2;

                    if (r1.getDate() < r2.getDate()) {
View Full Code Here

TOP

Related Classes of net.rim.device.api.util.Comparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.