Пример #1
0
 /**
  * Return a stem with matching display extension, or null if that stem doesn't exist
  *
  * @return
  */
 public static StemI findChildStem(StemI parentStem, String displayExtension) {
   Set<StemI> existingStems = parentStem.getChildStems();
   for (StemI stem : existingStems) {
     if (stem.getDisplayExtension().equals(displayExtension)) {
       return stem;
     }
   }
   return null;
 }