Comparator接口

public interface Comparator<T> {
     * @param o1 the first object to be compared.
     * @param o2 the second object to be compared.
     * @return a negative integer, zero, or a positive integer as the
     *         first argument is less than, equal to, or greater than the
     *         second.
     */
    int compare(T o1, T o2);
}

 

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务