Package kos.core

Class Lang


  • public final class Lang
    extends Object
    Utility methods internally used by Kos. We do not encourage you to rely on them as they may be discontinued without any notice.
    • Constructor Detail

      • Lang

        private Lang()
    • Method Detail

      • instantiate

        public static <T> T instantiate​(String canonicalName)
      • classFor

        public static <T> Class<T> classFor​(String canonicalName)
      • classForOrNull

        public static <T> Class<T> classForOrNull​(String canonicalName)
      • instantiate

        public static <T> T instantiate​(Class<T> type)
      • firstNotNull

        public static <T> T firstNotNull​(T... args)
      • matches

        public static <T> boolean matches​(Iterable<T> data,
                                          Predicate<T> matcher)
      • convert

        public static <T,​N> List<N> convert​(Iterable<T> data,
                                                  Function<T,​N> converter)
      • mapOf

        public static <K,​V> Lang.MapBuilder<K,​V> mapOf​(K key,
                                                                   V value)
      • waitFor

        public static <T> T waitFor​(io.vertx.core.Future<T> future)
        This method has been place here for the sake of convenience. It should avoided by developers as it is quite dangerous and might introduce slowness into the system.