Package com.mrivanplays.jdcf.util
Class Utils
- java.lang.Object
-
- com.mrivanplays.jdcf.util.Utils
-
public class Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkState(boolean expression, java.lang.String message)
static <T> boolean
contains(T value, T[] array)
static <T> java.util.List<java.util.List<T>>
getPages(java.util.Collection<T> c, int pageSize)
static net.dv8tion.jda.api.EmbedBuilder
setAuthor(java.util.function.Supplier<net.dv8tion.jda.api.EmbedBuilder> embed, net.dv8tion.jda.api.entities.User author)
-
-
-
Method Detail
-
checkState
public static void checkState(boolean expression, java.lang.String message)
-
contains
public static <T> boolean contains(T value, T[] array)
-
getPages
public static <T> java.util.List<java.util.List<T>> getPages(java.util.Collection<T> c, int pageSize)
-
setAuthor
public static net.dv8tion.jda.api.EmbedBuilder setAuthor(java.util.function.Supplier<net.dv8tion.jda.api.EmbedBuilder> embed, net.dv8tion.jda.api.entities.User author)
-
-