/** * Method to convert custom Levels into a StandardLevel for conversion to other systems. * * @param intLevel The integer value of the Level. * @return The StandardLevel. */ public static StandardLevel getStandardLevel(final int intLevel) { StandardLevel level = StandardLevel.OFF; for (final StandardLevel lvl : LEVELSET) { if (lvl.intLevel() > intLevel) { break; } level = lvl; } return level; } }
/** * Method to convert custom Levels into a StandardLevel for conversion to other systems. * * @param intLevel The integer value of the Level. * @return The StandardLevel. */ public static StandardLevel getStandardLevel(final int intLevel) { StandardLevel level = StandardLevel.OFF; for (final StandardLevel lvl : LEVELSET) { if (lvl.intLevel() > intLevel) { break; } level = lvl; } return level; } }