getRandomValue() — spring-boot Function Reference
Architecture documentation for the getRandomValue() function in RandomValuePropertySource.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 383d22e1_d782_5263_db71_52cac58d329d["getRandomValue()"] b3cee6d6_bfc9_cb5a_bdae_1169893d7d94["getProperty()"] b3cee6d6_bfc9_cb5a_bdae_1169893d7d94 -->|calls| 383d22e1_d782_5263_db71_52cac58d329d e4a09f94_5f78_8882_bed4_75071ce24df8["getRange()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| e4a09f94_5f78_8882_bed4_75071ce24df8 21c8b9f3_625a_b869_7d1d_4841fc7440b2["getNextIntInRange()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| 21c8b9f3_625a_b869_7d1d_4841fc7440b2 67ede5a4_13c2_6c3a_279d_560ec9d9336f["of()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| 67ede5a4_13c2_6c3a_279d_560ec9d9336f c2543c04_24c8_aa1a_50ba_0f0e01a01a43["getNextLongInRange()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| c2543c04_24c8_aa1a_50ba_0f0e01a01a43 feaea37f_ff7a_a085_e95c_b2e99e462002["toString()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| feaea37f_ff7a_a085_e95c_b2e99e462002 1a224203_87a1_c88d_3820_f6185d35fd6a["getRandomBytes()"] 383d22e1_d782_5263_db71_52cac58d329d -->|calls| 1a224203_87a1_c88d_3820_f6185d35fd6a style 383d22e1_d782_5263_db71_52cac58d329d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java lines 94–113
private Object getRandomValue(String type) {
if (type.equals("int")) {
return getSource().nextInt();
}
if (type.equals("long")) {
return getSource().nextLong();
}
String range = getRange(type, "int");
if (range != null) {
return getNextIntInRange(Range.of(range, Integer::parseInt));
}
range = getRange(type, "long");
if (range != null) {
return getNextLongInRange(Range.of(range, Long::parseLong));
}
if (type.equals("uuid")) {
return UUID.randomUUID().toString();
}
return getRandomBytes();
}
Domain
Subdomains
Calls
- getNextIntInRange()
- getNextLongInRange()
- getRandomBytes()
- getRange()
- of()
- toString()
Called By
Source
Frequently Asked Questions
What does getRandomValue() do?
getRandomValue() is a function in the spring-boot codebase.
What does getRandomValue() call?
getRandomValue() calls 6 function(s): getNextIntInRange, getNextLongInRange, getRandomBytes, getRange, of, toString.
What calls getRandomValue()?
getRandomValue() is called by 1 function(s): getProperty.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free