Class DefaultOrdinalPolicy

    • Constructor Detail

      • DefaultOrdinalPolicy

        public DefaultOrdinalPolicy()
    • Method Detail

      • shouldAdd

        public boolean shouldAdd​(int ordinal)
        Filters out (returns false) ordinals equal or less than TaxonomyReader.ROOT_ORDINAL. true otherwise.
        Specified by:
        shouldAdd in interface OrdinalPolicy
        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

        public void init​(TaxonomyWriter taxonomyWriter)
        Implemented as NO-OP as the default is not taxonomy dependent
        Specified by:
        init in interface OrdinalPolicy
        Parameters:
        taxonomyWriter - A relevant taxonomyWriter object, with which ordinals sent to OrdinalPolicy.shouldAdd(int) are examined.