Interface ConstantInt

All Superinterfaces:
Comparable<ValueProvider>, IntProvider, ValueProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface ConstantInt extends IntProvider
A constant int provider which always returns the same value.
Since:
3.0.0
See Also:
  • Field Details

    • ZERO

      @AsOf("3.0.0") static final ConstantInt ZERO
      A constant int provider which always returns 0.
  • Method Details

    • of

      @AsOf("3.0.0") static ConstantInt of(int value)
      A constant int provider.
      Parameters:
      value - the value to return
      Returns:
      the constant int provider
      Since:
      3.0.0