Esempio n. 1
0
 /**
  * Returns the duration type. Will throw an illegal argument exception if a type not listed in
  * this file is passed.
  *
  * @param v {@link String}
  * @return {@link CharacterType}
  */
 public static CharacterType fromValue(final String v) {
   for (CharacterType c : CharacterType.values()) {
     if (c.value.equals(v)) {
       return c;
     }
   }
   throw new IllegalArgumentException(v);
 }