Interface OrdinalPolicy

    • Method Detail

      • shouldAdd

        boolean shouldAdd​(int ordinal)
        Check whether a given category ordinal should be added to the stream.
        Parameters:
        ordinal - A given category ordinal which is to be tested for stream addition.
        Returns:
        true if the category should be added. false otherwise.
      • init

        void init​(TaxonomyWriter taxonomyWriter)
        Initialize the policy with a TaxonomyWriter. This method can be implemented as noop if the ordinal policy is not taxonomy dependent
        Parameters:
        taxonomyWriter - A relevant taxonomyWriter object, with which ordinals sent to shouldAdd(int) are examined.