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

opt() — spring-boot Function Reference

Architecture documentation for the opt() function in JSONArray.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 9

Entity Profile

Dependency Diagram

graph TD
  214607ee_e3cb_2924_a164_78c801124e07["opt()"]
  4d862258_3bc7_3eb4_640e_9b57f94c56a9["isNull()"]
  4d862258_3bc7_3eb4_640e_9b57f94c56a9 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  6994df93_9663_7034_3763_9db74a74f4bb["optBoolean()"]
  6994df93_9663_7034_3763_9db74a74f4bb -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  5ca017ce_3bb5_a0b3_7c69_7524384bb628["optDouble()"]
  5ca017ce_3bb5_a0b3_7c69_7524384bb628 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  0ff8f69a_8e04_fb5c_6a60_661705858211["optInt()"]
  0ff8f69a_8e04_fb5c_6a60_661705858211 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  730eaf8e_07dc_7cd5_cc67_d72fb44480f1["optLong()"]
  730eaf8e_07dc_7cd5_cc67_d72fb44480f1 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  8a04b44c_505f_3ea0_c170_91ab9af80f65["optString()"]
  8a04b44c_505f_3ea0_c170_91ab9af80f65 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  3e6c1f05_a0cd_d8f1_5ef8_3b8723ce70cb["optJSONArray()"]
  3e6c1f05_a0cd_d8f1_5ef8_3b8723ce70cb -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  7dd6f5cb_3c47_b20b_75ba_f9581754b8ef["optJSONObject()"]
  7dd6f5cb_3c47_b20b_75ba_f9581754b8ef -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  61ee1b01_ec0a_c5ab_b8b8_b5dec7cb7dd7["toJSONObject()"]
  61ee1b01_ec0a_c5ab_b8b8_b5dec7cb7dd7 -->|calls| 214607ee_e3cb_2924_a164_78c801124e07
  c4740bf8_facd_b1a4_23c8_ac6499f14a88["get()"]
  214607ee_e3cb_2924_a164_78c801124e07 -->|calls| c4740bf8_facd_b1a4_23c8_ac6499f14a88
  style 214607ee_e3cb_2924_a164_78c801124e07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/json/JSONArray.java lines 298–303

	public Object opt(int index) {
		if (index < 0 || index >= this.values.size()) {
			return null;
		}
		return this.values.get(index);
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does opt() do?
opt() is a function in the spring-boot codebase.
What does opt() call?
opt() calls 1 function(s): get.
What calls opt()?
opt() is called by 9 function(s): isNull, optBoolean, optDouble, optInt, optJSONArray, optJSONObject, optLong, optString, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free