/** * 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; }
/** * 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; }