/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. All elements of the source {@link EventList} * must implement {@link Comparable}. * <p>Usage of factory method {@link #create(EventList)} is preferable. */ public PopularityList(EventList<E> source) { this(new UniqueList<E>(source)); }
/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. All elements of the source {@link EventList} * must implement {@link Comparable}. * <p>Usage of factory method {@link #create(EventList)} is preferable. */ public PopularityList(EventList<E> source) { this(new UniqueList<E>(source)); }
/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. * * @param uniqueComparator {@link Comparator} used to determine equality */ public PopularityList(EventList<E> source, Comparator<E> uniqueComparator) { this(new UniqueList<E>(source, uniqueComparator)); }
/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. * * @param uniqueComparator {@link Comparator} used to determine equality */ public PopularityList(EventList<E> source, Comparator<E> uniqueComparator) { this(new UniqueList<E>(source, uniqueComparator)); }
/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. * * @param uniqueComparator {@link Comparator} used to determine equality */ public PopularityList(EventList<E> source, Comparator<E> uniqueComparator) { this(new UniqueList<E>(source, uniqueComparator)); }
/** * Creates a {@link UniqueList} that determines uniqueness via the * {@link Comparable} interface. All elements of the source {@link EventList} * must implement {@link Comparable}. * * @param source the {@link EventList} containing duplicates to remove */ public static <E extends Comparable<? super E>> UniqueList<E> create(EventList<E> source) { return new UniqueList<E>(source); }
/** * Creates a {@link UniqueList} that determines uniqueness via the * {@link Comparable} interface. All elements of the source {@link EventList} * must implement {@link Comparable}. * * @param source the {@link EventList} containing duplicates to remove */ public static <E extends Comparable<? super E>> UniqueList<E> create(EventList<E> source) { return new UniqueList<E>(source); }
/** * Creates a new {@link PopularityList} that provides frequency-ranking * for the specified {@link EventList}. All elements of the source {@link EventList} * must implement {@link Comparable}. * <p>Usage of factory method {@link #create(EventList)} is preferable. */ public PopularityList(EventList<E> source) { this(new UniqueList<E>(source)); }
/** * Creates a {@link UniqueList} that determines uniqueness via the * {@link Comparable} interface. All elements of the source {@link EventList} * must implement {@link Comparable}. * * @param source the {@link EventList} containing duplicates to remove */ public static <E extends Comparable<? super E>> UniqueList<E> create(EventList<E> source) { return new UniqueList<E>(source); }
final EventList<E> uniqueColumnValues = new UniqueList<E>(allColumnValues, uniqueComparator);
final EventList<E> uniqueColumnValues = new UniqueList<E>(allColumnValues, uniqueComparator);
final EventList<E> uniqueColumnValues = new UniqueList<E>(allColumnValues, uniqueComparator);