UNPKG

ts-collection

Version:

This is re-write of the java collection classes in typescript. There is some tweak as typescript templates are not as equivalent as Java.

37 lines (36 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isMap(param) { if (param === undefined || param === null) { return false; } return param.size !== undefined && param.isEmpty !== undefined && param.containsKey !== undefined && param.containsValue !== undefined && param.get !== undefined && param.put !== undefined && param.remove !== undefined && param.putAll !== undefined && param.clear !== undefined && param.keySet !== undefined && param.values !== undefined && param.entrySet !== undefined; } exports.isMap = isMap; function isMapEntry(param) { if (param === undefined || param === null) { return false; } return param.getKey !== undefined && param.getValue !== undefined && param.setValue !== undefined && param.equals !== undefined; } exports.isMapEntry = isMapEntry; var AbstractMapEntry = /** @class */ (function () { function AbstractMapEntry() { } return AbstractMapEntry; }()); exports.AbstractMapEntry = AbstractMapEntry;