src/main/java/cz/diribet/aqdef/model/builder/AqdefObjectModelBuilder.java
/**
	 * Replaces value of a given K-key with a new value for a single part
	 * identified by the part {@code index} or for all parts if index is 0.
	 * <p>
	 * If the K-key doesn't have value, it will be added.
	 * </p>
	 *
	 * @param key
	 * @param index of part whose value will be replaced or 0
	 * @param value new value
	 */
Replaces value of a given K-key with a new value for a single part
identified by the part  index or for all parts if index is 0.

If the K-key doesn't have value, it will be added.

@param key
@param index of part whose value will be replaced or 0
@param value new value
Replaces value of a given K - key with a new value for a single part identified by the part index or for all parts if index is 0 . If the K - key doesn ' t have value it will be added . @param key @param index of part whose value will be replaced or 0 @param value new value
public void replacePartEntry(String key, int index, Object value) {
		KKey kKey = KKey.of(key);
		List<PartIndex> affectedPartIndexes;
		if (index == 0) {
			affectedPartIndexes = aqdefObjectModel.getPartIndexes();
		} else {
			affectedPartIndexes = Collections.singletonList(PartIndex.of(index));
		}
		affectedPartIndexes.forEach(partIndex -> aqdefObjectModel.putPartEntry(kKey, partIndex, value));
	}
public void replacePartEntry ( String key , int index , Object value ) { KKey kKey = KKey . of ( key ) ; List < PartIndex > affectedPartIndexes ; if ( index == 0 ) { affectedPartIndexes = aqdefObjectModel . getPartIndexes ( ) ; } else { affectedPartIndexes = Collections . singletonList ( PartIndex . of ( index ) ) ; } affectedPartIndexes . forEach ( partIndex -> aqdefObjectModel . putPartEntry ( kKey , partIndex , value ) ) ; }
Replaces value of a given K-key with a new value for a single part
 identified by the part {@code index} or for all parts if index is 0.
Replaces value of a given K - key with a new value for a single part identified by the part { @code index } or for all parts if index is 0 .