of

open override fun of(value: String): UUIDValue

Wrap an existing UUID from a string value.

The provided value is parsed as a UUIDv4; if parsing fails, ValueError is thrown, which surfaces to guest code as applicable.

Return

Parsed UUID value (a UUIDValue compliant with UUID).

Parameters

value

UUID string.


open override fun of(value: UUIDValue): UUIDValue

Wrap an existing UUID from an already-structured value.

The provided value is re-used with a full copy of internal state, since it can safely be assumed to have been checked during earlier construction.

Return

Parsed UUID value (a UUIDValue compliant with UUID).

Parameters

value

Pre-validated UUID value.

See also


open override fun of(value: UUID): UUIDValue

Wrap an existing Java-originating UUID.

The provided value is re-used with a re-materialized internal state, since Java UUIDs can be assumed to be structurally valid.

Return

Parsed UUID value (a UUIDValue compliant with UUID).

Parameters

value

Java UUID.