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

subName() — spring-boot Function Reference

Architecture documentation for the subName() function in ConfigurationPropertyName.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  48522fcc_8d36_76fe_08fe_82a17ba2ae0d["subName()"]
  5acc70e6_66e3_8996_e541_fcd335154b61["getNumberOfElements()"]
  48522fcc_8d36_76fe_08fe_82a17ba2ae0d -->|calls| 5acc70e6_66e3_8996_e541_fcd335154b61
  17259b81_0e1a_4f7d_805a_bc319583d4cf["ConfigurationPropertyName()"]
  48522fcc_8d36_76fe_08fe_82a17ba2ae0d -->|calls| 17259b81_0e1a_4f7d_805a_bc319583d4cf
  9423c88e_6397_68c1_1858_0ef00015b111["subElements()"]
  48522fcc_8d36_76fe_08fe_82a17ba2ae0d -->|calls| 9423c88e_6397_68c1_1858_0ef00015b111
  style 48522fcc_8d36_76fe_08fe_82a17ba2ae0d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java lines 266–277

	public ConfigurationPropertyName subName(int offset) {
		if (offset == 0) {
			return this;
		}
		if (offset == getNumberOfElements()) {
			return EMPTY;
		}
		if (offset < 0 || offset > getNumberOfElements()) {
			throw new IndexOutOfBoundsException("Offset: " + offset + ", NumberOfElements: " + getNumberOfElements());
		}
		return new ConfigurationPropertyName(this.elements.subElements(offset));
	}

Domain

Subdomains

Frequently Asked Questions

What does subName() do?
subName() is a function in the spring-boot codebase.
What does subName() call?
subName() calls 3 function(s): ConfigurationPropertyName, getNumberOfElements, subElements.

Analyze Your Own Codebase

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

Try Supermodel Free