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

ca.ibodrov.mica.server.UuidGenerator Maven / Gradle / Ivy

There is a newer version: 0.0.25
Show newest version
package ca.ibodrov.mica.server;

import com.fasterxml.uuid.Generators;
import com.fasterxml.uuid.impl.TimeBasedEpochGenerator;

import java.util.UUID;

public class UuidGenerator {

    private final TimeBasedEpochGenerator generator = Generators.timeBasedEpochGenerator();

    public UUID generate() {
        return generator.generate();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy