Class ObjectID

Index

Constructor methods

Methods

Constructor methods

constructor(s?: string): ObjectID

Parameters

  • s?: string optional

Returns

ObjectID

Methods

public static createFromHexString(hexString: string): ObjectID

Parameters

  • hexString: string

Returns

ObjectID

public static createFromTime(time: number): ObjectID

Parameters

  • time: number

Returns

ObjectID

public equals(otherID: ObjectID): boolean

Parameters

Returns

boolean

public getTimestamp(): Date

Returns

Date

public toHexString(): string

Returns

string