package ru.yandex.webmaster3.viewer.http.sitetree;

import ru.yandex.webmaster3.core.sitestructure.NewSiteStructureNode;

import java.util.Comparator;

/**
 * User: azakharov
 * Date: 09.02.15
 * Time: 15:48
 */
public class SiteTreeConstants {
    public static final int MAX_NODE_NAME_LENGTH = 256;

    public static final int MAX_USER_NODE_COUNT = 5;

    public static final Comparator<NewSiteStructureNode> NODE_COMPARATOR =
            Comparator.comparingLong(NewSiteStructureNode::getSearchDocCount).reversed()
                    .thenComparing(Comparator.comparing(NewSiteStructureNode::getName));
}
