Exemplo n.º 1
0
 /**
  * Finds the <tt>PatternType</tt> by given value.
  *
  * @param value the value
  * @return the found <tt>PatternType</tt> instance or null if no type is found.
  */
 public static PatternType getFromShort(short value) {
   for (PatternType type : values()) {
     if (type.getValue() == value) {
       return type;
     }
   }
   return null;
 }