1 line
23 KiB
JSON
1 line
23 KiB
JSON
{"id":"aDnK","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/ts/lik.interestmap.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/package.json","includedInParent":true,"mtime":1545395355371},{"name":"./lik.plugins","loc":{"line":11,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.interestmap.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.plugins.js"},{"name":"./lik.objectmap","loc":{"line":12,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.interestmap.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.objectmap.js"},{"name":"./lik.interestmap.interest","loc":{"line":13,"column":43},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.interestmap.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/dist/lik.interestmap.interest.js"}],"generated":{"js":"\"use strict\";var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{a(r.next(t))}catch(e){s(e)}}function c(t){try{a(r.throw(t))}catch(e){s(e)}}function a(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(o,c)}a((r=r.apply(t,e||[])).next())})};Object.defineProperty(exports,\"__esModule\",{value:!0});const e=require(\"./lik.plugins\"),n=require(\"./lik.objectmap\"),r=require(\"./lik.interestmap.interest\");class i{constructor(t){this.interestObjectMap=new n.Objectmap,this.interestObservable=new e.smartrx.ObservableIntake,this.comparisonFunc=t}addInterest(e){return t(this,void 0,void 0,function*(){this.comparisonFunc(e);let t;const n=new r.Interest(this,e,this.comparisonFunc);let i=!1;return yield this.interestObjectMap.forEach(e=>{i||e.comparisonString!==n.comparisonString||(console.log(\"info\",`interest already exists for ${n.comparisonString}`),i=!0,(t=e).renew())}),t||(t=n,this.interestObjectMap.add(t)),this.interestObservable.push(t),t})}removeInterest(t){this.interestObjectMap.findOneAndRemove(e=>t.comparisonString===e.comparisonString)}checkInterest(t){const e=this.comparisonFunc(t);return this.checkInterestByString(e)}checkInterestByString(t){return!!this.interestObjectMap.find(e=>e.comparisonString===t)}informLostInterest(t){const e=this.findInterest(t);e&&e.markLost()}findInterest(t){const e=this.comparisonFunc(t);return this.interestObjectMap.find(t=>t.comparisonString===e)}}exports.InterestMap=i;","map":{"mappings":[{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":355}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":361}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":363}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":371}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":388}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":390}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":398}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":417}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":419}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":427}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":457}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":10,"column":13},"generated":{"line":1,"column":463}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":21,"column":2},"generated":{"line":1,"column":465}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":21,"column":14},"generated":{"line":1,"column":477}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":14,"column":10},"generated":{"line":1,"column":480}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":14,"column":10},"generated":{"line":1,"column":485}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":14,"column":30},"generated":{"line":1,"column":503}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":14,"column":34},"generated":{"line":1,"column":507}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":14,"column":34},"generated":{"line":1,"column":509}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":9},"generated":{"line":1,"column":519}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":9},"generated":{"line":1,"column":524}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":30},"generated":{"line":1,"column":543}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":34},"generated":{"line":1,"column":547}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":42},"generated":{"line":1,"column":549}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":57,"column":50},"generated":{"line":1,"column":557}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":22,"column":4},"generated":{"line":1,"column":574}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":22,"column":9},"generated":{"line":1,"column":579}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":22,"column":26},"generated":{"line":1,"column":594}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":29,"column":15},"generated":{"line":1,"column":596}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":1,"column":608}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":32,"column":29},"generated":{"line":1,"column":651}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":32,"column":34},"generated":{"line":1,"column":656}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":32,"column":49},"generated":{"line":1,"column":671}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":33,"column":4},"generated":{"line":1,"column":674}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":33,"column":8},"generated":{"line":1,"column":678}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":34,"column":4},"generated":{"line":1,"column":680}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":34,"column":10},"generated":{"line":1,"column":686}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":34,"column":24},"generated":{"line":1,"column":688}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":692}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":694}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":35,"column":6},"generated":{"line":1,"column":703}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":36,"column":6},"generated":{"line":1,"column":708}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":37,"column":6},"generated":{"line":1,"column":710}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":37,"column":11},"generated":{"line":1,"column":715}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":1,"column":731}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":39,"column":8},"generated":{"line":1,"column":735}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":39,"column":25},"generated":{"line":1,"column":738}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":1,"column":740}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":40,"column":10},"generated":{"line":1,"column":753}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":40,"column":15},"generated":{"line":1,"column":758}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":40,"column":33},"generated":{"line":1,"column":776}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":40,"column":41},"generated":{"line":1,"column":784}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":1,"column":788}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":41,"column":29},"generated":{"line":1,"column":791}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":41,"column":41},"generated":{"line":1,"column":793}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":41,"column":62},"generated":{"line":1,"column":812}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":41,"column":74},"generated":{"line":1,"column":814}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":42,"column":8},"generated":{"line":1,"column":833}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":42,"column":16},"generated":{"line":1,"column":841}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":42,"column":20},"generated":{"line":1,"column":845}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":42,"column":59},"generated":{"line":1,"column":883}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":42,"column":71},"generated":{"line":1,"column":885}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":43,"column":8},"generated":{"line":1,"column":905}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":43,"column":25},"generated":{"line":1,"column":908}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":1,"column":911}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":44,"column":25},"generated":{"line":1,"column":913}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":45,"column":23},"generated":{"line":1,"column":916}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":927}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":49,"column":6},"generated":{"line":1,"column":931}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":49,"column":23},"generated":{"line":1,"column":933}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":50,"column":6},"generated":{"line":1,"column":935}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":50,"column":11},"generated":{"line":1,"column":940}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":50,"column":29},"generated":{"line":1,"column":958}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":50,"column":33},"generated":{"line":1,"column":962}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":1,"column":966}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":52,"column":9},"generated":{"line":1,"column":971}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":52,"column":28},"generated":{"line":1,"column":990}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":52,"column":33},"generated":{"line":1,"column":995}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":53,"column":11},"generated":{"line":1,"column":998}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":63,"column":9},"generated":{"line":1,"column":1002}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":63,"column":24},"generated":{"line":1,"column":1017}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":64,"column":29},"generated":{"line":1,"column":1020}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":64,"column":34},"generated":{"line":1,"column":1025}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":64,"column":52},"generated":{"line":1,"column":1043}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":64,"column":69},"generated":{"line":1,"column":1060}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":65,"column":13},"generated":{"line":1,"column":1063}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":65,"column":25},"generated":{"line":1,"column":1065}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":65,"column":46},"generated":{"line":1,"column":1084}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":65,"column":59},"generated":{"line":1,"column":1086}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":72,"column":9},"generated":{"line":1,"column":1104}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":72,"column":23},"generated":{"line":1,"column":1118}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":73,"column":4},"generated":{"line":1,"column":1121}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":73,"column":10},"generated":{"line":1,"column":1127}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":73,"column":29},"generated":{"line":1,"column":1129}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":73,"column":34},"generated":{"line":1,"column":1134}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":73,"column":49},"generated":{"line":1,"column":1149}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":74,"column":4},"generated":{"line":1,"column":1152}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":74,"column":11},"generated":{"line":1,"column":1159}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":74,"column":16},"generated":{"line":1,"column":1164}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":74,"column":38},"generated":{"line":1,"column":1186}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":81,"column":9},"generated":{"line":1,"column":1189}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":81,"column":31},"generated":{"line":1,"column":1211}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":85,"column":4},"generated":{"line":1,"column":1214}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":82,"column":26},"generated":{"line":1,"column":1222}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":82,"column":31},"generated":{"line":1,"column":1227}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":82,"column":49},"generated":{"line":1,"column":1245}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":82,"column":54},"generated":{"line":1,"column":1250}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":83,"column":13},"generated":{"line":1,"column":1253}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":83,"column":22},"generated":{"line":1,"column":1255}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":83,"column":43},"generated":{"line":1,"column":1274}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":96,"column":9},"generated":{"line":1,"column":1277}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":96,"column":28},"generated":{"line":1,"column":1296}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":97,"column":4},"generated":{"line":1,"column":1299}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":97,"column":10},"generated":{"line":1,"column":1305}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":97,"column":27},"generated":{"line":1,"column":1307}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":97,"column":32},"generated":{"line":1,"column":1312}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":97,"column":45},"generated":{"line":1,"column":1325}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":98,"column":8},"generated":{"line":1,"column":1328}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":99,"column":6},"generated":{"line":1,"column":1331}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":99,"column":21},"generated":{"line":1,"column":1333}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":107,"column":9},"generated":{"line":1,"column":1344}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":107,"column":22},"generated":{"line":1,"column":1357}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":108,"column":4},"generated":{"line":1,"column":1360}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":108,"column":10},"generated":{"line":1,"column":1366}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":108,"column":29},"generated":{"line":1,"column":1368}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":108,"column":34},"generated":{"line":1,"column":1373}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":108,"column":49},"generated":{"line":1,"column":1388}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":112,"column":4},"generated":{"line":1,"column":1391}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":109,"column":21},"generated":{"line":1,"column":1398}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":109,"column":26},"generated":{"line":1,"column":1403}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":109,"column":44},"generated":{"line":1,"column":1421}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":109,"column":49},"generated":{"line":1,"column":1426}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":110,"column":13},"generated":{"line":1,"column":1429}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":110,"column":22},"generated":{"line":1,"column":1431}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":110,"column":43},"generated":{"line":1,"column":1450}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":1454}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":1462}},{"source":"../ts/lik.interestmap.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":1474}}],"sources":{"../ts/lik.interestmap.ts":"import * as plugins from './lik.plugins';\nimport { Objectmap } from './lik.objectmap';\n\nimport { Observable } from 'rxjs';\n\nimport { Interest } from './lik.interestmap.interest';\n\nexport type IInterestComparisonFunc<T> = (objectArg: T) => string;\n\nexport class InterestMap<DTInterestId, DTInterestFullfillment> {\n /**\n * stores interests that are currently fullfilled by the cache\n */\n private interestObjectMap = new Objectmap<Interest<DTInterestId, DTInterestFullfillment>>();\n\n /**\n * a function to compare interests\n */\n private comparisonFunc: IInterestComparisonFunc<DTInterestId>;\n\n constructor(comparisonFuncArg: IInterestComparisonFunc<DTInterestId>) {\n this.comparisonFunc = comparisonFuncArg;\n }\n\n /**\n * adds an interest to the InterestMap\n * @param objectArg\n */\n public async addInterest(\n objectArg: DTInterestId\n ): Promise<Interest<DTInterestId, DTInterestFullfillment>> {\n const comparisonString = this.comparisonFunc(objectArg);\n let returnInterest: Interest<DTInterestId, DTInterestFullfillment>;\n const newInterest = new Interest<DTInterestId, DTInterestFullfillment>(\n this,\n objectArg,\n this.comparisonFunc\n );\n let interestExists = false;\n await this.interestObjectMap.forEach(interestArg => {\n if (!interestExists && interestArg.comparisonString === newInterest.comparisonString) {\n console.log('info', `interest already exists for ${newInterest.comparisonString}`);\n interestExists = true;\n returnInterest = interestArg;\n returnInterest.renew();\n }\n });\n if (!returnInterest) {\n returnInterest = newInterest;\n this.interestObjectMap.add(returnInterest);\n }\n this.interestObservable.push(returnInterest);\n return returnInterest;\n }\n\n // tslint:disable-next-line:member-ordering\n public interestObservable = new plugins.smartrx.ObservableIntake<Interest<DTInterestId, any>>();\n\n /**\n * removes an interest from the interest map\n * @param objectArg removes an interest from the InterestMap\n */\n public removeInterest(interestArg: Interest<DTInterestId, DTInterestFullfillment>) {\n const interestToRemove = this.interestObjectMap.findOneAndRemove(interestArg2 => {\n return interestArg.comparisonString === interestArg2.comparisonString;\n });\n }\n\n /**\n * check interest\n */\n public checkInterest(objectArg: DTInterestId): boolean {\n const comparisonString = this.comparisonFunc(objectArg);\n return this.checkInterestByString(comparisonString);\n }\n\n /**\n * checks an interest\n * @param comparisonStringArg\n */\n public checkInterestByString(comparisonStringArg: string): boolean {\n const foundInterest = this.interestObjectMap.find(interest => {\n return interest.comparisonString === comparisonStringArg;\n });\n if (foundInterest) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * inform lost interest\n * @param interestId\n */\n public informLostInterest(interestId: DTInterestId) {\n const wantedInterest = this.findInterest(interestId);\n if (wantedInterest) {\n wantedInterest.markLost();\n }\n }\n\n /**\n * finds an interest\n * @param objectArg\n */\n public findInterest(objectArg: DTInterestId): Interest<DTInterestId, DTInterestFullfillment> {\n const comparableString = this.comparisonFunc(objectArg);\n const interest = this.interestObjectMap.find(interest => {\n return interest.comparisonString === comparableString;\n });\n return interest; // if an interest is found, the interest is returned, otherwise interest is null\n }\n}\n"},"lineCount":null}},"hash":"c732e900b331915835ff619c66fed40a","cacheData":{"env":{}}} |