/** * Creates a new TableColumnComparator that sorts objects by the specified * column using the specified table format. */ public TableColumnComparator(TableFormat<? super E> tableFormat, int column) { this(tableFormat, column, GlazedLists.comparableComparator()); }
/** * Creates a new TableColumnComparator that sorts objects by the specified * column using the specified table format. */ public TableColumnComparator(TableFormat<? super E> tableFormat, int column) { this(tableFormat, column, GlazedLists.comparableComparator()); }
/** * Creates a {@link UniqueList} that determines uniqueness via the * {@link Comparable} interface. All elements of the source {@link EventList} * must implement {@link Comparable}. * <p>Usage of factory method {@link #create(EventList)} is preferable. * * @param source the {@link EventList} containing duplicates to remove */ public UniqueList(EventList<E> source) { this(source, (Comparator<E>) GlazedLists.comparableComparator()); }
/** * @param coder specifies the node colors */ public SimpleTree/**/( ) { this( (Comparator)GlazedLists.comparableComparator()); }
/** * @param coder specifies the node colors */ public SimpleTree/**/( ) { this( (Comparator)GlazedLists.comparableComparator()); }
/** * Creates a {@link UniqueList} that determines uniqueness via the * {@link Comparable} interface. All elements of the source {@link EventList} * must implement {@link Comparable}. * <p>Usage of factory method {@link #create(EventList)} is preferable. * * @param source the {@link EventList} containing duplicates to remove */ public UniqueList(EventList<E> source) { this(source, (Comparator<E>) GlazedLists.comparableComparator()); }
/** * Creates a {@link SortedList} that sorts the specified {@link EventList}. * Because this constructor takes no {@link Comparator} argument, all * elements in the specified {@link EventList} must implement {@link Comparable} * or a {@link ClassCastException} will be thrown. * <p>Usage of factory method {@link #create(EventList)} is preferable. * * @param source the {@link EventList} to be sorted */ public SortedList(EventList<E> source) { this(source, (Comparator<E>)GlazedLists.comparableComparator()); }
/** * Constructs a SequenceList containing a sequence of values produced by * the <code>sequencer</code> which cover the range of values contained * within the <code>source</code>. * * @param source the raw values to build a sequence around * @param sequencer the logic to produce sequence values relative to a value */ public SequenceList(EventList<E> source, Sequencer<E> sequencer) { this(source, sequencer, (Comparator<E>) GlazedLists.comparableComparator()); }
/** * @param coder specifies the node colors */ public FourColorTree/**/( ListToByteCoder coder ) { this( coder, (Comparator)GlazedLists.comparableComparator()); }
/** * @param coder specifies the node colors */ public FourColorTree/**/( ListToByteCoder coder ) { this( coder, (Comparator)GlazedLists.comparableComparator()); }
/** * Creates a {@link SortedList} that sorts the specified {@link EventList}. * Because this constructor takes no {@link Comparator} argument, all * elements in the specified {@link EventList} must implement {@link Comparable} * or a {@link ClassCastException} will be thrown. * <p>Usage of factory method {@link #create(EventList)} is preferable. * * @param source the {@link EventList} to be sorted */ public SortedList(EventList<E> source) { this(source, (Comparator<E>)GlazedLists.comparableComparator()); }
/** * Constructs a SequenceList containing a sequence of values produced by * the <code>sequencer</code> which cover the range of values contained * within the <code>source</code>. * * @param source the raw values to build a sequence around * @param sequencer the logic to produce sequence values relative to a value */ public SequenceList(EventList<E> source, Sequencer<E> sequencer) { this(source, sequencer, (Comparator<E>) GlazedLists.comparableComparator()); }
/** * Creates a {@link GroupingList} that determines groupings via the * {@link Comparable} interface which all elements of the <code>source</code> * are assumed to implement. * <p>Usage of factory method {@link #create(EventList)} is preferable. */ public GroupingList(EventList<E> source) { this(source, (Comparator<E>) GlazedLists.comparableComparator()); }
/** * @param coder specifies the node colors */ public BciiTree/**/(/*[ COLORED_START ]*/ ListToByteCoder coder /*[ COLORED_END ]*/) { this(/*[ COLORED_START ]*/ coder, /*[ COLORED_END ]*/ (Comparator)GlazedLists.comparableComparator()); }
/** * Creates a reverse {@link Comparator} that works for {@link Comparable} objects. */ @SuppressWarnings("unchecked") public static <T extends Comparable> Comparator<T> reverseComparator() { if(reversedComparable == null) reversedComparable = reverseComparator(comparableComparator()); return (Comparator<T>)reversedComparable; }
/** * Clears the data from the trees efficiently. */ public void clear() { start = new SimpleTree<V>(GlazedLists.comparableComparator()); end = new SimpleTree<V>(GlazedLists.comparableComparator()); }
public Tags() { super(GlazedLists.comparableComparator()); jPanel = new JPanel(); BoxLayout layout = new BoxLayout(jPanel, BoxLayout.X_AXIS); jPanel.setLayout(layout); updateTags(); }
/** * Clears the data from the trees efficiently. */ public void clear() { start = new SimpleTree<V>(GlazedLists.comparableComparator()); end = new SimpleTree<V>(GlazedLists.comparableComparator()); }
/** * Clears the data from the trees efficiently. */ public void clear() { start = new SimpleTree<V>(GlazedLists.comparableComparator()); end = new SimpleTree<V>(GlazedLists.comparableComparator()); }
/** * Creates a reverse {@link Comparator} that works for {@link Comparable} objects. */ @SuppressWarnings("unchecked") public static <T extends Comparable> Comparator<T> reverseComparator() { if(reversedComparable == null) { reversedComparable = reverseComparator(comparableComparator()); } return (Comparator<T>)reversedComparable; }