From d1b8ba9d074d90bf74830a3215982b71d2738315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Lima?= Date: Sun, 5 Jul 2020 00:49:48 -0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5cce155..d380c9b 100644 --- a/README.md +++ b/README.md @@ -115,25 +115,25 @@ Examples of ULIDs: These are some examples of using the `UlidSpecCreator` to create ULIDs strings: ```java - // with your custom timestamp strategy TimestampStrategy customStrategy = new CustomTimestampStrategy(); String ulid = UlidCreator.getUlidSpecCreator() .withTimestampStrategy(customStrategy) .createString(); - +```java +``` // with your custom random strategy that wraps any random generator RandomStrategy customStrategy = new CustomRandomStrategy(); String ulid = UlidCreator.getUlidSpecCreator() .withRandomStrategy(customStrategy) .createString(); - +```java +``` // with `java.util.Random` number generator Random random = new Random(); String ulid = UlidCreator.getUlidSpecCreator() .withRandomGenerator(random) .createString(); - ```