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

com.cn.lp.common.factory.IDCreator Maven / Gradle / Ivy

The newest version!
package com.cn.lp.common.factory;

/**
 * ID 构造器
 * Created by qirong on 2019/3/10.
 */
public interface IDCreator {

    /**
     * 获取下一个ID
     * @param clazz
     * @return
     */
    default O createNext(Class clazz) {
        return this.createNext(clazz.getName());
    }

    /**
     * 获取下一个ID
     * @param key
     * @return
     */
    O createNext(String key);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy