bindToMapWithNumberKeyAndIndexed() — spring-boot Function Reference
Architecture documentation for the bindToMapWithNumberKeyAndIndexed() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1["bindToMapWithNumberKeyAndIndexed()"] bda95e6e_681f_05a1_e8d3_1d10292f4003["getMapBindable()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| bda95e6e_681f_05a1_e8d3_1d10292f4003 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style e06bf64b_2bb0_20a8_de8c_c7ac7db9a5b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java lines 475–485
@Test
void bindToMapWithNumberKeyAndIndexed() {
Bindable<List<Integer>> listBindable = Bindable.listOf(Integer.class);
Bindable<Map<Integer, List<Integer>>> target = getMapBindable(Integer.class, listBindable.getType());
MockConfigurationPropertySource mockSource = new MockConfigurationPropertySource();
mockSource.put("foo[0][0]", "8");
mockSource.put("foo[0][1]", "9");
this.sources.add(mockSource);
Map<Integer, List<Integer>> map = this.binder.bind("foo", target).get();
assertThat(map.get(0)).containsExactly(8, 9);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapWithNumberKeyAndIndexed() do?
bindToMapWithNumberKeyAndIndexed() is a function in the spring-boot codebase.
What does bindToMapWithNumberKeyAndIndexed() call?
bindToMapWithNumberKeyAndIndexed() calls 6 function(s): MockConfigurationPropertySource, add, get, getMapBindable, getType, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free