Liking cljdoc? Tell your friends :D

com.vadelabs.uid.uuid.core

Core UUID generation and manipulation functions implementing RFC 9562.

Provides comprehensive support for all UUID versions (v0-v8) with efficient internal representation and conversion utilities.

Implementation inspired by clj-uuid by Dan Lentz: https://github.com/danlentz/clj-uuid Licensed under Eclipse Public License 1.0

Core UUID generation and manipulation functions implementing RFC 9562.

Provides comprehensive support for all UUID versions (v0-v8) with
efficient internal representation and conversion utilities.

Implementation inspired by clj-uuid by Dan Lentz:
https://github.com/danlentz/clj-uuid
Licensed under Eclipse Public License 1.0
raw docstring

+max+clj

The MAX UUID is a special form of sentinel UUID that is specified to have all 128 bits set to one.

The MAX UUID is a special form of sentinel UUID that is specified to have
all 128 bits set to one.
sourceraw docstring

+namespace-dns+clj

source

+namespace-oid+clj

source

+namespace-url+clj

source

+namespace-x500+clj

source

+null+clj

The NULL UUID is a special form of sentinel UUID that is specified to have all 128 bits set to zero.

The NULL UUID is a special form of sentinel UUID that is specified to have
all 128 bits set to zero.
sourceraw docstring

<clj

(< _)
(< x y)
(< x y & more)

Directly compare two or more UUIDs for < relation.

Directly compare two or more UUIDs for < relation.
sourceraw docstring

=clj

(= _)
(= x y)
(= x y & more)

Directly compare two or more UUIDs for equality.

Directly compare two or more UUIDs for equality.
sourceraw docstring

>clj

(> _)
(> x y)
(> x y & more)

Directly compare two or more UUIDs for > relation.

Directly compare two or more UUIDs for > relation.
sourceraw docstring

maxclj

(max)

Generates the v15 (maximum) UUID.

Generates the v15 (maximum) UUID.
sourceraw docstring

monotonic-timeclj

(monotonic-time)

Return a monotonic timestamp (guaranteed always increasing) based on the number of 100-nanosecond intervals elapsed since the adoption of the Gregorian calendar in the West, 12:00am Friday October 15, 1582 UTC.

Return a monotonic timestamp (guaranteed always increasing) based on
the number of 100-nanosecond intervals elapsed since the adoption of
the Gregorian calendar in the West, 12:00am Friday October 15, 1582 UTC.
sourceraw docstring

nullclj

(null)

Generates the v0 (null) UUID.

Generates the v0 (null) UUID.
sourceraw docstring

squuidclj

(squuid)

Generate a SQUUID (sequential, random) unique identifier.

Generate a SQUUID (sequential, random) unique identifier.
sourceraw docstring

uuid-string?clj

(uuid-string? s)
source

uuid-urn-string?clj

(uuid-urn-string? s)
source

uuid-vec?clj

(uuid-vec? v)
source

UUIDablecljprotocol

A UUIDable object directly represents a UUID.

A UUIDable object directly represents a UUID.

as-uuidclj

(as-uuid x)

Coerce the value 'x' to a UUID.

Coerce the value 'x' to a UUID.

uuidable?clj

(uuidable? x)

Return 'true' if 'x' can be coerced to UUID.

Return 'true' if 'x' can be coerced to UUID.
sourceraw docstring

UUIDNameBytescljprotocol

A mechanism intended for user-level extension that defines the decoding rules for the local-part representation of arbitrary Clojure / Java Objects when used for computing namespaced identifiers.

A mechanism intended for user-level extension that defines the
decoding rules for the local-part representation of arbitrary
Clojure / Java Objects when used for computing namespaced
identifiers.

as-byte-arrayclj

(as-byte-array x)

Extract a byte serialization that represents the 'name' of x, typically unique within a given namespace.

Extract a byte serialization that represents the 'name' of x,
typically unique within a given namespace.
sourceraw docstring

UUIDRfc4122cljprotocol

source

UUIDRfc9562cljprotocol

A protocol that abstracts an unique identifier as described by IETF RFC9562.

A protocol that abstracts an unique identifier as described by
IETF RFC9562.

get-instantclj

(get-instant uuid)

get-unix-timeclj

(get-unix-time uuid)

get-clk-lowclj

(get-clk-low uuid)

hash-codeclj

(hash-code uuid)

to-hex-stringclj

(to-hex-string uuid)

uuid=clj

(uuid= x y)

to-byte-arrayclj

(to-byte-array uuid)

get-word-lowclj

(get-word-low uuid)

get-clk-seqclj

(get-clk-seq uuid)

get-node-idclj

(get-node-id uuid)

uuid>clj

(uuid> x y)

null?clj

(null? uuid)

uuid<clj

(uuid< x y)

get-word-highclj

(get-word-high uuid)

max?clj

(max? uuid)

to-stringclj

(to-string uuid)

get-clk-highclj

(get-clk-high uuid)

get-timestampclj

(get-timestamp uuid)

get-time-lowclj

(get-time-low uuid)

to-urn-stringclj

(to-urn-string uuid)

get-versionclj

(get-version uuid)

get-time-highclj

(get-time-high uuid)

get-time-midclj

(get-time-mid uuid)

get-variantclj

(get-variant uuid)

uuid?clj

(uuid? x)

to-uriclj

(to-uri uuid)
sourceraw docstring

v0clj

(v0)

Generates the v0 (null) UUID.

Generates the v0 (null) UUID.
sourceraw docstring

v1clj

(v1)

Generate a v1 (time-based) unique identifier.

Generate a v1 (time-based) unique identifier.
sourceraw docstring

v3clj

(v3 context local-part)

Generate a v3 (name based, MD5 hash) UUID.

Generate a v3 (name based, MD5 hash) UUID.
sourceraw docstring

v4clj

(v4)
(v4 msb lsb)

Generate a v4 (random) UUID.

Generate a v4 (random) UUID.
sourceraw docstring

v5clj

(v5 context local-part)

Generate a v5 (name based, SHA1 hash) UUID.

Generate a v5 (name based, SHA1 hash) UUID.
sourceraw docstring

v6clj

(v6)

Generate a v6 (time-based), lexically sortable, unique identifier.

Generate a v6 (time-based), lexically sortable, unique identifier.
sourceraw docstring

v7clj

(v7)

Generate a v7 unix time-based, lexically sortable UUID.

Generate a v7 unix time-based, lexically sortable UUID.
sourceraw docstring

v8clj

(v8 msb lsb)

Generate a v8 custom UUID with up to 122 bits of user data.

Generate a v8 custom UUID with up to 122 bits of user data.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close