All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ideaaedi.commonds.rank.Rankable Maven / Gradle / Ivy

The newest version!
package com.ideaaedi.commonds.rank;


/**
 * 排名flag
 *
 * @author JustryDeng 
 * @since 1.0.0
 */
public interface Rankable extends Comparable{
    
    /**
     * 是否参与排名
     *
     * @return true-参与;false-不参与
     */
    default boolean shouldJoinRank() {
        return true;
    }
    
    /**
     * 获取排名
     *
     * @return 排名
     */
    int obtainRank();
    
    /**
     * 填充排名
     *
     * @param rankValue
     *            排名值
     */
    void fillRank(int rankValue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy