/** * Sets Features from another existing WordElement into this WordElement. * * @param currentWord * the WordElement to copy features from */ public void setFeatures(WordElement currentWord) { if (null != currentWord && null != currentWord.getAllFeatures()) { foreach (var feature in currentWord.getAllFeatureNames()) { setFeature(feature, currentWord.getFeature(feature)); } } }