Class InterestMap<DTInterestId, DTInterestFullfillment>
Type parameters
-
DTInterestId
-
DTInterestFullfillment
Constructors
constructor
-
Type parameters
-
DTInterestId
-
DTInterestFullfillment
Parameters
Returns InterestMap<DTInterestId, DTInterestFullfillment>
Properties
Private comparisonFunc
Private interestObjectMap
interestObservable
interest
Observable: ObservableIntake<Interest<DTInterestId, any>> = ...
options
Methods
addInterest
- addInterest(interestId: DTInterestId, defaultFullfillmentArg?: DTInterestFullfillment): Promise<Interest<DTInterestId, DTInterestFullfillment>>
-
Parameters
-
interestId: DTInterestId
-
Optional defaultFullfillmentArg: DTInterestFullfillment
Returns Promise<Interest<DTInterestId, DTInterestFullfillment>>
checkInterest
- checkInterest(objectArg: DTInterestId): boolean
-
Parameters
Returns boolean
checkInterestByString
- checkInterestByString(comparisonStringArg: string): boolean
-
Parameters
-
comparisonStringArg: string
Returns boolean
findInterest
- findInterest(interestId: DTInterestId): Interest<DTInterestId, DTInterestFullfillment>
-
Parameters
Returns Interest<DTInterestId, DTInterestFullfillment>
informLostInterest
- informLostInterest(interestId: DTInterestId): void
-
Parameters
Returns void
removeInterest
- removeInterest(interestArg: Interest<DTInterestId, DTInterestFullfillment>): void
-
Parameters
-
interestArg: Interest<DTInterestId, DTInterestFullfillment>
Returns void
a function to compare interests