Interface Generator.TimeBased

All Superinterfaces:
Generator
All Known Implementing Classes:
V1, V6
Enclosing interface:
Generator

public static interface Generator.TimeBased extends Generator
Time-based UUID generator
Since:
2025-12-08
  • Method Details

    • of

      UUID of(Timestamp ts)
      Generate time-based UUID with timestamp and default node-id
      Parameters:
      ts - UUID timestamp
      Returns:
      UUID
    • now

      UUID now(NodeId nodeId)
      Generate time-based UUID with current-timestamp and node-id
      Parameters:
      nodeId - UUID timestamp
      Returns:
      UUID