Package io.confluent.csid.utils
Class JavaUtils
java.lang.Object
io.confluent.csid.utils.JavaUtils
public final class JavaUtils extends Object
-
Method Summary
Modifier and Type Method Description static <T> Optional<T>getLast(List<T> commitHistory)static <T> Optional<T>getOnlyOne(Map<String,T> stringMapMap)static booleanisGreaterThan(Duration compare, Duration to)static Durationmax(Duration left, Duration right)static <K, V1, V2> Map<K,V2>remap(Map<K,V1> map, Function<? super V1,? extends V2> function)A shortcut for changing only the values of a Map.
-
Method Details
-
getLast
-
getOnlyOne
-
max
-
isGreaterThan
-
remap
public static <K, V1, V2> Map<K,V2> remap(Map<K,V1> map, Function<? super V1,? extends V2> function)A shortcut for changing only the values of a Map.https://stackoverflow.com/a/50740570/105741
-