@ JsonProperty ( "aliases" ) @ JsonInclude ( Include . NON_EMPTY ) public Map < String , List < TermImpl > > getAliasUpdates ( ) { Map < String , List < TermImpl > > updatedValues = new HashMap <> ( ) ; for ( Map . Entry < String , AliasesWithUpdate > entry : newAliases . entrySet ( ) ) { AliasesWithUpdate update = entry . getValue ( ) ; if ( ! update . write ) { continue ; } List < TermImpl > convertedAliases = new ArrayList <> ( ) ; for ( MonolingualTextValue alias : update . aliases ) { convertedAliases . add ( monolingualToJackson ( alias ) ) ; } updatedValues . put ( entry . getKey ( ) , convertedAliases ) ; } return updatedValues ; }
Alias accessor provided for JSON serialization only