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

com.v1ok.uuid.java.GenerateImpl Maven / Gradle / Ivy

There is a newer version: 0.1.7
Show newest version
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