Package kos.core
Class Lang
java.lang.Object
kos.core.Lang
Utility methods internally used by Kos. We do not encourage
you to rely on them as they may be discontinued without any notice.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>static <T,N> List<N> static <T,N> List<N> convertIndex(Iterable<T> data, BiFunction<Integer, T, N> converter) static <T> List<T>filter(Collection<T> data, Predicate<T> matcher) static <T> ImplementationLoader.Result<T>static <T> ImplementationLoader.Result<T>static <T> TfirstNotNull(T... args) static <T> Tinstantiate(Class<T> type) static <T> Tinstantiate(String canonicalName) static <K,V> Lang.MapBuilder<K, V> mapOf(K key, V value) static <T> booleannonEmptySetOfString(Iterable<String> values) static <T> Iterable<T>sorted(Iterable<T> data, Comparator<T> comparator) static <T> TwaitFor(io.vertx.core.Future<T> future) This method has been place here for the sake of convenience.static <T> TwaitFor(AtomicReference<T> reference)
-
Constructor Details
-
Lang
private Lang()
-
-
Method Details
-
instantiate
-
classFor
-
instantiate
-
firstNotNull
public static <T> T firstNotNull(T... args) -
first
-
matches
-
first
-
filter
-
convert
-
convertIndex
-
mapOf
-
nonEmptySetOfString
-
sorted
-
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. -
waitFor
-