pro.jk.ejoker.utils.idHelper.IDCodec Maven / Gradle / Ivy
package pro.jk.ejoker.utils.idHelper;
public interface IDCodec {
/**
* encode the generic type to string
* @param source
* @return
*/
public String encode(T source);
/**
* decode the string to generic type
* @param dist
* @return
*/
public T decode(String dist);
}