class Bag extends AbstractCollection<T> implements Serializable {

    public Entry<T, Integer> getMax() {
        Entry<T, Integer> max = null;
        for (Entry<T, Integer> entry : unique()) {
            if (max == null || max.getValue() < entry.getValue()) {
                max = entry;
            }
        }
        return max;
    }

    public  Bag();
    public  Bag(Map<? extends T, ? extends Integer> map);
    private  Bag(Map<T, Integer> map, int size);
    public  Bag(Iterable<? extends T> iterable);

}