Class Util
java.lang.Object
net.covers1624.coffeegrinder.util.Util
Created by covers1624 on 23/2/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,L extends List<T> & RandomAccess>
voidaddSorted(L list, T thing, Comparator<? super T> comparator) static voidcloseResources(@Nullable Closeable... resources) static voidcloseResources(Iterable<? extends @Nullable Closeable>... iterables) static voidstatic voidstatic StringformatDuration(long elapsedTimeInNs) static <T> intstatic <T> voidstatic <T> Iterable<T> safeConcat(@Nullable List<T> a, @Nullable List<T> b) static <T> Supplier<T> singleMemoize(Supplier<T> supplier) static <E> ArrayList<E>
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
reverse
-
safeConcat
-
singleMemoize
-
indexOf
-
toList
-
formatDuration
-
closeResources
- Throws:
IOException
-
closeResources
@SafeVarargs public static void closeResources(Iterable<? extends @Nullable Closeable>... iterables) throws IOException - Throws:
IOException
-
closeSafe
-
closeSafe
-
addSorted
public static <T,L extends List<T> & RandomAccess> void addSorted(L list, T thing, Comparator<? super T> comparator) -
split
-