Package org.araneaframework.uilib.list.util.comparator

Examples of org.araneaframework.uilib.list.util.comparator.NullComparator


   *            not-null values.
   * @return default <code>Comparator</code> for comparing all objects
   *         including <code>null</code> references.
   */
  public static Comparator getDefault(boolean nullFirst) {
    return new NullComparator(new ComparableComparator(), nullFirst);
  }
View Full Code Here


   * @return the <code>Comparator</code> for <code>String</code> objects
   *         including <code>null</code> values.
   */
  public static Comparator getStringComparator(boolean nullFirst,
      boolean ignoreCase, Locale locale) {
    return new NullComparator(
        getNotNullStringComparator(ignoreCase, locale), nullFirst);
  }
View Full Code Here

   * @return the <code>Comparator</code> for <code>Boolean</code> objects
   *         including <code>null</code> values.
   */
  public static Comparator getBooleanComparator(boolean nullFirst,
      boolean trueFirst) {
    return new NullComparator(trueFirst ? BooleanComparator.TRUE_FIRST
        : BooleanComparator.FALSE_FIRST, nullFirst);
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.list.util.comparator.NullComparator

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.