com.v1ok.uuid.java.GenerateImpl Maven / Gradle / Ivy
package com.v1ok.uuid.java;
import com.v1ok.uuid.IDGenerate;
import java.util.UUID;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class GenerateImpl implements IDGenerate {
@Override
public String nextIdToString() throws InterruptedException {
return UUID.randomUUID().toString();
}
@Override
public Long nextIdToLong() throws InterruptedException {
throw new UnsupportedOperationException("This method is unsupported");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy