src/main/java/cz/diribet/aqdef/model/AqdefObjectModel.java
/**
	 * Iterates through all values.
	 *
	 * @param consumer
	 */
Iterates through all values.
@param consumer
Iterates through all values . @param consumer
public void forEachValue(ValueConsumer consumer) {
		partEntries.forEach((partIndex, part) -> {
			Map<CharacteristicIndex, CharacteristicEntries> characteristicsOfPart = characteristicEntries.get(part.getIndex());
			if (characteristicsOfPart != null) {
				characteristicsOfPart.forEach((characteristicIndex, characteristic) -> {
					Map<CharacteristicIndex, Map<ValueIndex, ValueEntries>> valuesOfPart = valueEntries.get(part.getIndex());
					if (valuesOfPart != null) {
						Map<ValueIndex, ValueEntries> values = valuesOfPart.get(characteristic.getIndex());
						if (values != null) {
							values.forEach((valueIndex, value) -> {
								consumer.accept(part, characteristic, value);
							});
						}
					}
				});
			}
		});
	}
public void forEachValue ( ValueConsumer consumer ) { partEntries . forEach ( ( partIndex , part ) -> { Map < CharacteristicIndex , CharacteristicEntries > characteristicsOfPart = characteristicEntries . get ( part . getIndex ( ) ) ; if ( characteristicsOfPart != null ) { characteristicsOfPart . forEach ( ( characteristicIndex , characteristic ) -> { Map < CharacteristicIndex , Map < ValueIndex , ValueEntries > > valuesOfPart = valueEntries . get ( part . getIndex ( ) ) ; if ( valuesOfPart != null ) { Map < ValueIndex , ValueEntries > values = valuesOfPart . get ( characteristic . getIndex ( ) ) ; if ( values != null ) { values . forEach ( ( valueIndex , value ) -> { consumer . accept ( part , characteristic , value ) ; } ) ; } } } ) ; } } ) ; }
Iterates through all values.
Iterates through all values .