CLIDGenerator class

CLID (CrushLog ID) Generator Generates globally unique, deterministic identifiers for climbing routes and locations Based on UUID v5 for deterministic IDs and UUID v4 for random IDs

Constructors

CLIDGenerator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generateLocationCLID(Location location) String
Generate a deterministic CLID for a location
generateRandomCLID(EntityType type) String
Generate a random UUID v4 for user content
generateRouteCLID(String locationCLID, Route route) String
Generate a deterministic CLID for a route
generateSectorCLID(String locationCLID, Sector sector) String
Generate a deterministic CLID for a sector
parse(String clid) CLID
Parse a CLID into its components
toShortForm(String clid) String
Generate a short URL-safe version of the CLID
validate(String clid) bool
Validate a CLID

Constants

crushlogNamespace → const String
CrushLog namespace UUID (registered for climbing data)