Example #1
0
 /**
  * Return the FsType corresponding to the specified ID.
  *
  * @since 1.0
  */
 public static FsType typeOf(int id) {
   for (FsType fs : values()) {
     if (fs.id() == id) {
       return fs;
     }
   }
   return UNKNOWN;
 }
Example #2
0
 /**
  * Return the FsType corresponding to the specified String value.
  *
  * @since 1.0
  */
 public static FsType typeOf(String value) {
   for (FsType fs : values()) {
     if (fs.value().equals(value)) {
       return fs;
     }
   }
   return UNKNOWN;
 }