Package com.ioshq.comparator

Examples of com.ioshq.comparator.BeanPropertyComparator


   */
  public static void sort(Locale locale, Collection<? extends Object> col,
      String property) {
    // sort list on property
    Collator collator = Collator.getInstance(locale);
    BeanPropertyComparator bpc = new BeanPropertyComparator(property,
        collator);
    Collections.sort((List<? extends Object>) col, bpc);

    // Collator collator = Collator.getInstance(new Locale("sv","SE"));
    // BeanPropertyComparator bpc2 = new
View Full Code Here


    // Collections.reverse((List<CentreBean>) col);
  }
  public static void sort(Collection<? extends Object> col,
      String property) {
    Collator collator = Collator.getInstance();
    BeanPropertyComparator bpc = new BeanPropertyComparator(property,
        collator);
    Collections.sort((List<? extends Object>) col, bpc);
  }
View Full Code Here

TOP

Related Classes of com.ioshq.comparator.BeanPropertyComparator

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.