Interface UniformHeight

All Superinterfaces:
HeightProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface UniformHeight extends HeightProvider
A height provider which samples a uniformly distributed value between HeightProvider.minInclusive() and HeightProvider.maxInclusive() (inclusive).
Since:
3.0.0
See Also:
  • Method Details

    • toBuilder

      @AsOf("3.0.0") default UniformHeight.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static UniformHeight of(VerticalAnchor minInclusive, VerticalAnchor maxInclusive)
      Creates a new uniform height provider.
      Parameters:
      minInclusive - the vertical anchor to use as the minimum height
      maxInclusive - the vertical anchor to use as the maximum height
      Returns:
      the uniform height provider
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static UniformHeight.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0