public class TagCloud<T> extends AbstractList<TagCloud.Entry>
Modifier and Type | Class and Description |
---|---|
class |
TagCloud.Entry |
static interface |
TagCloud.WeightFunction<T> |
modCount
Constructor and Description |
---|
TagCloud(Iterable<? extends T> inputs,
TagCloud.WeightFunction<T> f)
Creates a tag cloud.
|
Modifier and Type | Method and Description |
---|---|
TagCloud.Entry |
get(int index) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public TagCloud(Iterable<? extends T> inputs, TagCloud.WeightFunction<T> f)
f
- Assigns weight to each item.public TagCloud.Entry get(int index)
get
in interface List<TagCloud.Entry>
get
in class AbstractList<TagCloud.Entry>
public int size()
size
in interface Collection<TagCloud.Entry>
size
in interface List<TagCloud.Entry>
size
in class AbstractCollection<TagCloud.Entry>
Copyright © 2004–2021. All rights reserved.