AnP/Public/ecma/Models/UniqueKeyModel.ecma.js

45 lines
1020 B
JavaScript

"use strict";
import {Common} from "../Utils/Common.ecma.js";
/**
* @class ThreadModel
* @constructor
* @param {!thread_callback} callback
* @param {!(Object.<string, any|null>|Array.<any|null>)} inputs
* @return {void}
* @access public
* @static
*/
export const UniqueKeyModel = (function(){
/**
* @callback thread_callback
* @param {!UniqueKeyModel} thread
* @return {void}
*/
/**
* @constructs UniqueKeyModel
* @param {!string} key
* @param {!boolean} is_html_item
* @param {!number} i
* @return {void}
* @access private
* @static
*/
const UniqueKeyModel = function(key, is_html_item, i){
/** @type {number} */
this.i = i;
/** @type {string} */
this.key = key;
/** @type {boolean} */
this.is_html_item = is_html_item;
/** @type {boolean} */
this.loaded = false;
/** @type {number} */
this.date = Date.now();
};
return UniqueKeyModel;
})();