Factory

trait Factory

Generates random identifiers and parses identifiers from both string and binary representations.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def from(string: String): Identifier

Parses an identifier from its string representation. If the provided string does not contain a valid identifier then the Empty identifier should be returned instead.

Parses an identifier from its string representation. If the provided string does not contain a valid identifier then the Empty identifier should be returned instead.

def from(bytes: Array[Byte]): Identifier

Parses an identifier from its binary representation. If the provided byte array does not contain a valid identifier then the Empty identifier should be returned instead.

Parses an identifier from its binary representation. If the provided byte array does not contain a valid identifier then the Empty identifier should be returned instead.

Generates a new, random identifier

Generates a new, random identifier