Code example for ByteBuffer

Methods: putLong

0
        this.counter = 0;
    } 
 
    public UUID generate()
    { 
        seedBuf.putLong(0, counter++);
        return UUID.nameUUIDFromBytes(seed);
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java