@Test(expected=IllegalStateException.class) public void testFindFirstNonExistant() { JulMappings.findFirst(buildTestMappings(), level -> level == LogLevel.OFF); }
static Level findFirst(LevelMapping[] mappings, IntPredicate predicate) { for (LevelMapping mapping : mappings) { if (predicate.test(mapping.zlgLevel)) { return mapping.julLevel; } } throw new IllegalStateException("No matching level found"); }
JulMappings { static Level findFirst(LevelMapping[] mappings, IntPredicate predicate) { for (LevelMapping mapping : mappings) { if (predicate.test(mapping.zlgLevel)) { return mapping.julLevel; } } throw new IllegalStateException("No matching level found"); } }
JulMappings { static Level findFirst(LevelMapping[] mappings, IntPredicate predicate) { for (LevelMapping mapping : mappings) { if (predicate.test(mapping.zlgLevel)) { return mapping.julLevel; } } throw new IllegalStateException("No matching level found"); } private  JulMappings(); }
JulMappings { static Level findFirst(LevelMapping[] mappings, IntPredicate predicate) { for (LevelMapping mapping : mappings) { if (predicate.test(mapping.zlgLevel)) { return mapping.julLevel; } } throw new IllegalStateException("No matching level found"); } private  JulMappings();  }
JulMappings { static Level findFirst(LevelMapping[] mappings, IntPredicate predicate) { for (LevelMapping mapping : mappings) { if (predicate.test(mapping.zlgLevel)) { return mapping.julLevel; } } throw new IllegalStateException("No matching level found"); } private  JulMappings();   }