protected void processDescriptions ( List < MonolingualTextValue > descriptions ) { for ( MonolingualTextValue description : descriptions ) { NameWithUpdate currentValue = newDescriptions . get ( description . getLanguageCode ( ) ) ; // only mark the description as added if the value we are writing is different from the current one if ( currentValue == null || ! currentValue . value . equals ( description ) ) { newDescriptions . put ( description . getLanguageCode ( ) , new NameWithUpdate ( description , true ) ) ; } } }
Adds descriptions to the item .