class SplitHistory implements Comparable<SplitHistory>, Serializable {

    public boolean isLastUpTo(int level) {
        if ((entries.size() - level) < 1) {
            throw new IllegalArgumentException("level must be less than entries size");
        }
        for (int i = entries.size() - 1; i > level; i--) {
            if (!entries.get(i).isLast()) {
                return false;
            }
        }
        return true;
    }

    public  SplitHistory();
    public  SplitHistory(int initialCapacity);
    private  SplitHistory(boolean addRoot);
    private  SplitHistory(int initialCapacity, boolean addRoot);

}