Examples of NullComparator


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

   * @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

Examples of org.eclipse.nebula.widgets.nattable.config.NullComparator

                // Register null comparator to disable sort
                configRegistry
                        .registerConfigAttribute(
                                SortConfigAttributes.SORT_COMPARATOR,
                                new NullComparator(), DisplayMode.NORMAL,
                                NO_SORT_LABEL);
            }
        };
    }
View Full Code Here

Examples of prefuse.util.collections.NullComparator

            // for Tables, we can get this directly
          s = ((Table)ts).getSchema();
        } else {
          // if non-table tuple set is empty, we punt
          if ( ts.getTupleCount() == 0 )
            return new NullComparator();
          // otherwise, use the schema of the first tuple in the set
            s = ((Tuple)ts.tuples().next()).getSchema();
        }
        // create the comparator
        CompositeComparator cc = new CompositeComparator(m_fields.length);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.