public class Rankings extends Object implements Serializable
Constructor and Description |
---|
Rankings() |
Rankings(int topN) |
Rankings(Rankings other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Rankings |
copy()
Creates a (defensive) copy of itself.
|
List<Rankable> |
getRankings()
The returned defensive copy is only "somewhat" defensive.
|
int |
maxSize()
Get max size.
|
void |
pruneZeroCounts()
Removes ranking entries that have a count of zero.
|
int |
size()
Get size.
|
String |
toString() |
void |
updateWith(Rankable r) |
void |
updateWith(Rankings other) |
public Rankings()
public Rankings(int topN)
public Rankings(Rankings other)
public int maxSize()
public int size()
public List<Rankable> getRankings()
Rankable.copy()
does not guarantee that any Object's embedded within
a Rankable will be defensively copied, too.public void updateWith(Rankings other)
public void updateWith(Rankable r)
public void pruneZeroCounts()
public Rankings copy()
Copyright © 2023 The Apache Software Foundation. All rights reserved.