Home / Class/ ConfigurationPropertyNamesIterator Class — spring-boot Architecture

ConfigurationPropertyNamesIterator Class — spring-boot Architecture

Architecture documentation for the ConfigurationPropertyNamesIterator class in SpringIterableConfigurationPropertySource.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySource.java lines 372–406

	private static class ConfigurationPropertyNamesIterator implements Iterator<ConfigurationPropertyName> {

		private final @Nullable ConfigurationPropertyName[] names;

		private int index;

		ConfigurationPropertyNamesIterator(@Nullable ConfigurationPropertyName[] names) {
			this.names = names;
		}

		@Override
		public boolean hasNext() {
			skipNulls();
			return this.index < this.names.length;
		}

		@Override
		public @Nullable ConfigurationPropertyName next() {
			skipNulls();
			if (this.index >= this.names.length) {
				throw new NoSuchElementException();
			}
			return this.names[this.index++];
		}

		private void skipNulls() {
			while (this.index < this.names.length) {
				if (this.names[this.index] != null) {
					return;
				}
				this.index++;
			}
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free