Class UlidSupplier

java.lang.Object
com.helixframework.id.ulid.UlidSupplier
All Implemented Interfaces:
Supplier<String>

public class UlidSupplier extends Object implements Supplier<String>
A supplier implementation that generates ULID (Universally Unique Lexicographically Sortable Identifier) strings. This class implements the Supplier interface to provide a standardized way of generating ULIDs through the get() method.
  • Constructor Details

    • UlidSupplier

      public UlidSupplier()
  • Method Details

    • get

      public String get()
      Generates a new random ULID string.
      Specified by:
      get in interface Supplier<String>
      Returns:
      a new ULID string