@Test public void testFindBuiltInTypeByNameWhenItFinds() { assertTrue(BuiltInTypeUtils.findBuiltInTypeByName("boolean").isPresent()); assertEquals(BOOLEAN, BuiltInTypeUtils.findBuiltInTypeByName("boolean").get()); }
public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); }
BuiltInTypeUtils { public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); } }
BuiltInTypeUtils { public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); }  }
BuiltInTypeUtils { public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); }  static boolean isBuiltInType(final String type); static Optional<BuiltInType> findBuiltInTypeByName(final String name); }
BuiltInTypeUtils { public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); }  static boolean isBuiltInType(final String type); static Optional<BuiltInType> findBuiltInTypeByName(final String name);  }