Account-group identifier (32-bit). Group 0 is the reserved default.

Properties

value: number

Returns the raw 32-bit value as a JS number.

Methods

  • Returns void

  • Returns a fresh AccountGroupId holding the same value.

    Returns AccountGroupId

  • Returns true when both ids refer to the same group.

    Parameters

    Returns boolean

  • Returns void

  • Returns the decimal string form of the 32-bit value.

    Returns string

  • Builds a group id from a 32-bit integer.

    Errors

    Throws ParamError when value is 0 (the reserved default group).

    Parameters

    • value: number

    Returns AccountGroupId

  • Builds a group id by FNV-1a-32 hashing a non-empty string.

    The hash never collides with the reserved default group.

    Errors

    Throws ParamError when value is empty or whitespace-only.

    Parameters

    • value: string

    Returns AccountGroupId