Neptunian Parity Mnemonic

    @jayesol/jayeson.model
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    Steps to create a new filter rule

    1. Create a new class for that rule in the same package as the existing filter rules.

    2. Make the class extend GeneralDataFilterRule and implement one of IMatchFilterRule, IEventFilterRule or IRecordFilterRule.

    3. Implement the methods

    isComplied
    buildHashCode
    compareTo

    4. Set the ruleType protected field to a new integer not used in DefaultFilterRuleType.

    5. Add the new rule to the DefaultFilterRuleType enum.

    6. Add unit tests for the new rule.

    7. Add the rule to filter.js

    8. Add the typescript definition for that rule in filter.d.ts

    9. Add an example of the new rule to ruleCombination.ts, then follow the instructions at the top of ruleCombination.ts to generate ruleCombination.json

    10. Add the checks for the new rule to FilterRuleDeserializationTest.java and run that class to verify the deserialization.

    Keywords

    Install

    npm i @jayesol/jayeson.model

    DownloadsWeekly Downloads

    0

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    35.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • jimmy.nguyen.2512
    • long.chau
    • lamdang
    • huan.nguyen
    • quang.nguyen
    • vothong
    • ducthang
    • wuliang.teng
    • kccwlim
    • aaron.tai
    • kiet.vo
    • tanjunxian
    • junyan