src/main/java/cz/diribet/aqdef/model/AqdefObjectModel.java
/**
	 * Removes all values of characteristic with the given index.
	 *
	 * @param index
	 * @return
	 */
Removes all values of characteristic with the given index.
@param index
@return
Removes all values of characteristic with the given index . @param index @return
private List<ValueEntries> removeValueEntries(CharacteristicIndex index) {
		Map<CharacteristicIndex, Map<ValueIndex, ValueEntries>> entriesWithPartIndex = valueEntries.get(index.getPartIndex());
		if (entriesWithPartIndex != null) {
			Map<ValueIndex, ValueEntries> removedValueEntries = entriesWithPartIndex.remove(index);
			if (entriesWithPartIndex.isEmpty()) {
				valueEntries.remove(index.getPartIndex());
			}
			if (removedValueEntries != null) {
				return new ArrayList<>(removedValueEntries.values());
			}
		}
		return new ArrayList<>();
	}
private List < ValueEntries > removeValueEntries ( CharacteristicIndex index ) { Map < CharacteristicIndex , Map < ValueIndex , ValueEntries > > entriesWithPartIndex = valueEntries . get ( index . getPartIndex ( ) ) ; if ( entriesWithPartIndex != null ) { Map < ValueIndex , ValueEntries > removedValueEntries = entriesWithPartIndex . remove ( index ) ; if ( entriesWithPartIndex . isEmpty ( ) ) { valueEntries . remove ( index . getPartIndex ( ) ) ; } if ( removedValueEntries != null ) { return new ArrayList < > ( removedValueEntries . values ( ) ) ; } } return new ArrayList < > ( ) ; }
Removes all values of characteristic with the given index.
Removes all values of characteristic with the given index .
// cleanup empty entries