Identifier

data class Identifier(val namespace: String, val name: String) : Serializable(source)

Uniquely identifies objects within Koremods, such as scripts and transformers. Both namespaces and names must follow a set of rules and are check against their respective patterns - NAMESPACE_PATTERN for namespaces and NAME_PATTERN for names.

Parameters

namespace

the owner's globally unique name, used to group together objects belonging to the same entity

name

the object's unique name within its namespace

See also

Throws

if any of the two components don't match their pattern

Constructors

Link copied to clipboard
internal constructor(namespace: String, name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String