Interface IFeatureQueryCallback


public interface IFeatureQueryCallback
A callback class that is called with the results of a query.

See IFeatureModel#query.

  • Method Details

    • handleFeature

      boolean handleFeature(@NotNull Feature feature)
      Implement this method to handle a feature that is returned by the IFeatureModel#query method.
      Parameters:
      feature - the feature to handle.
      Returns:
      false to indicate that the query can stop.
    • handleTermination

      void handleTermination(@NotNull FeatureQueryTermination termination)
      Implement this method to handle the termination of a feature query.

      Note
      During this query, you should not use this callback anymore after calling handleTermination.
      Parameters:
      termination - the termination.
      Since:
      2026.0