@Test public void defaultConstructorShouldSetPositiveTopN() { Rankings rankings = new Rankings(); assertThat(rankings.maxSize()).isGreaterThan(0); }
public int maxSize() { return maxSize; }
Rankings implements Serializable { public int maxSize() { return maxSize; } }
Rankings implements Serializable { public int maxSize() { return maxSize; } Rankings();  Rankings(int topN);  Rankings(Rankings other); }
Rankings implements Serializable { public int maxSize() { return maxSize; } Rankings();  Rankings(int topN);  Rankings(Rankings other); int maxSize(); int size(); List<Rankable> getRankings(); void updateWith(Rankings other); void updateWith(Rankable r); void pruneZeroCounts(); @Override String toString(); Rankings copy(); }
Rankings implements Serializable { public int maxSize() { return maxSize; } Rankings();  Rankings(int topN);  Rankings(Rankings other); int maxSize(); int size(); List<Rankable> getRankings(); void updateWith(Rankings other); void updateWith(Rankable r); void pruneZeroCounts(); @Override String toString(); Rankings copy();  }