@Override
 public ILearningCharmGroup[] getCharmGroups(IIdentificate type) {
   if (MartialArtsUtilities.MARTIAL_ARTS.equals(type)) {
     return martialArtsGroups;
   }
   return nonMartialArtsGroupsByType.get(type);
 }
Example #2
0
 @Override
 public ILearningCharmGroup[] getCharmGroups(Identified type) {
   if (MartialArtsUtilities.MARTIAL_ARTS.equals(type)) {
     return martialArtsGroups;
   }
   return Functions.forMap(nonMartialArtsGroupsByType, new ILearningCharmGroup[0]).apply(type);
 }