Home / Function/ getNextIntInRange() — spring-boot Function Reference

getNextIntInRange() — spring-boot Function Reference

Architecture documentation for the getNextIntInRange() function in RandomValuePropertySource.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  21c8b9f3_625a_b869_7d1d_4841fc7440b2["getNextIntInRange()"]
  383d22e1_d782_5263_db71_52cac58d329d["getRandomValue()"]
  383d22e1_d782_5263_db71_52cac58d329d -->|calls| 21c8b9f3_625a_b869_7d1d_4841fc7440b2
  9e2183f1_d07b_8dd9_45d3_ba5ea4ef41c1["getMin()"]
  21c8b9f3_625a_b869_7d1d_4841fc7440b2 -->|calls| 9e2183f1_d07b_8dd9_45d3_ba5ea4ef41c1
  4eb89152_f8b0_bfb6_be4f_e3789f7e6a3a["getMax()"]
  21c8b9f3_625a_b869_7d1d_4841fc7440b2 -->|calls| 4eb89152_f8b0_bfb6_be4f_e3789f7e6a3a
  ba0be01d_2942_12f0_0fad_1663774ab4f3["assertPresent()"]
  21c8b9f3_625a_b869_7d1d_4841fc7440b2 -->|calls| ba0be01d_2942_12f0_0fad_1663774ab4f3
  style 21c8b9f3_625a_b869_7d1d_4841fc7440b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java lines 125–129

	private int getNextIntInRange(Range<Integer> range) {
		OptionalInt first = getSource().ints(1, range.getMin(), range.getMax()).findFirst();
		assertPresent(first.isPresent(), range);
		return first.getAsInt();
	}

Domain

Subdomains

Calls

  • assertPresent()
  • getMax()
  • getMin()

Called By

Frequently Asked Questions

What does getNextIntInRange() do?
getNextIntInRange() is a function in the spring-boot codebase.
What does getNextIntInRange() call?
getNextIntInRange() calls 3 function(s): assertPresent, getMax, getMin.
What calls getNextIntInRange()?
getNextIntInRange() is called by 1 function(s): getRandomValue.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free