@ Override public String get ( ) { try ( final Timer . Context context = timer . time ( ) ) { final String s = randomUUID ( ) . toString ( ) ; if ( length == 0 || count == 0 ) { return s ; } final StringJoiner joiner = new StringJoiner ( "/" , "" , "/" + s ) ; IntStream . rangeClosed ( 0 , count - 1 ) . forEach ( x -> joiner . add ( s . substring ( x * length , ( x + 1 ) * length ) ) ) ; return joiner . toString ( ) ; } }
Mint a unique identifier as a UUID