public void setPronunciations(List<Entry> pronounciations) { NSMutableArray pronounciationDicts = NSMutableArray.CLASS.arrayWithCapacity(pronounciations.size()); for (Entry e : pronounciations) { pronounciationDicts.addObject(e.getData()); } setValue(Pronunciations, pronounciationDicts); }
public void addAbbreviation(Entry abbreviation) { NSMutableArray abbreviations = getValueAsType(Abbreviations, NSMutableArray.class); if ( abbreviations == null ) { abbreviations = NSMutableArray.CLASS.arrayWithCapacity(1); } abbreviations.addObject(abbreviation.getData()); setValue(Abbreviations, abbreviations); }
public void addPronounciation(Entry pronounciation) { NSMutableArray pronounciations = getValueAsType(Pronunciations, NSMutableArray.class); if ( pronounciations == null ) { pronounciations = NSMutableArray.CLASS.arrayWithCapacity(1); } pronounciations.addObject(pronounciation.getData()); setValue(Pronunciations, pronounciations); }
public void setAbbreviations(List<Entry> abbreviations) { NSMutableArray abbreviationDicts = NSMutableArray.CLASS.arrayWithCapacity(abbreviations.size()); for (Entry e : abbreviations) { abbreviationDicts.addObject(e.getData()); } setValue(Abbreviations, abbreviationDicts); }