Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • 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)