接口 InitialValueAwareOptimizer

  • 所有已知实现类:
    PooledOptimizer

    public interface InitialValueAwareOptimizer
    Marker interface for optimizer which wishes to know the user-specified initial value.

    Used instead of constructor injection since that is already a public understanding and because not all optimizers care.

    作者:
    Steve Ebersole
    • 方法详细资料

      • injectInitialValue

        void injectInitialValue​(long initialValue)
        Reports the user specified initial value to the optimizer.

        -1 is used to indicate that the user did not specify.

        参数:
        initialValue - The initial value specified by the user, or -1 to indicate that the user did not specify.