UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

85 lines (40 loc) 1.27 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [IncrementingIdentifierFactory](./rc-js-util.incrementingidentifierfactory.md) ## IncrementingIdentifierFactory class Provides an incrementing integer identifier. **Signature:** ```typescript export declare class IncrementingIdentifierFactory implements IIdentifierFactory ``` **Implements:** [IIdentifierFactory](./rc-js-util.iidentifierfactory.md) ## Remarks By default the first ID will be 1, this may be configured at construction. ## Constructors <table><thead><tr><th> Constructor </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td> [(constructor)(id)](./rc-js-util.incrementingidentifierfactory._constructor_.md) </td><td> </td><td> Constructs a new instance of the `IncrementingIdentifierFactory` class </td></tr> </tbody></table> ## Methods <table><thead><tr><th> Method </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td> [getNextId()](./rc-js-util.incrementingidentifierfactory.getnextid.md) </td><td> </td><td> </td></tr> </tbody></table>