ca.odell.glazedlists
Class PopularityList<E>
- EventListener, EventList<E>, List, ListEventListener<E>
public final class PopularityList<E>
An
EventList
that shows the unique elements from its source
EventList
ordered by the frequency of their appearance.
This
EventList
supports all write operations.
Warning: This class
breaks the contract required by
java.util.List
. See
EventList
for an example.
Warning: This class is
thread ready but not thread safe. See
EventList
for an example
of thread safe code.
EventList Overview |
Writable: | yes |
Concurrency: | thread ready, not thread safe |
Performance: | reads: O(log N), writes O(log N) |
Memory: | 196 bytes per element |
Unit Tests: | N/A |
Issues: |
104
|
add , addAll , clear , dispose , get , getSourceIndex , isWritable , listChanged , remove , removeAll , retainAll , set , size |
T[] toArray , add , add , addAll , addAll , addListEventListener , clear , contains , containsAll , equals , get , getPublisher , getReadWriteLock , hashCode , indexOf , isEmpty , iterator , lastIndexOf , listIterator , listIterator , remove , remove , removeAll , removeListEventListener , retainAll , set , size , subList , toArray , toString |
PopularityList
public PopularityList(EventList source)
Creates a new
PopularityList
that provides frequency-ranking
for the specified
EventList
. All elements of the source
EventList
must implement
Comparable
.
Usage of factory method
create(EventList)
is preferable.
PopularityList
public PopularityList(EventList source,
Comparator uniqueComparator)
uniqueComparator
- Comparator
used to determine equality
extends Comparable super E>> PopularityList create
public static > PopularityList create(EventList source)
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05