class SampleSet implements ISampleSet<T> {

    protected T removeMin()
    {
        if (tail == null)
        {
            return null;
        }
        size--;
        count -= tail.count;
        T minElement = tail.element;
        tail = tail.prev;
        if (tail != null)
        {
            tail.next = null;
        }
        sampleMap.remove(minElement);
        return minElement;
    }

    public  SampleSet();
    public  SampleSet(int capacity);
    public  SampleSet(int capacity, Random random);

}