Пример #1
0
 @Override
 public BuildType fromCabalString(final String s) {
   for (BuildType l : BuildType.values()) {
     if (l.getCabalName().equals(s)) {
       return l;
     }
   }
   return null;
 }
Пример #2
0
 @Override
 public String toCabalString(final BuildType o) {
   return o.getCabalName();
 }