Class CoreUtils


  • public class CoreUtils
    extends java.lang.Object
    The utility class for Bukkit/SpigotMC/Paper plugins.
    • Constructor Summary

      Constructors 
      Constructor Description
      CoreUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isFloatFromString​(java.lang.String string)
      Check whether the String can convert to Float
      static boolean isIntFromString​(java.lang.String string)
      Check whether the String value can convert to Integer
      • Methods inherited from class java.lang.Object

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

      • CoreUtils

        public CoreUtils()
    • Method Detail

      • isIntFromString

        public static boolean isIntFromString​(java.lang.String string)
        Check whether the String value can convert to Integer
        Parameters:
        string - String value to check
        Returns:
        true if the string value is an integer
        or false
      • isFloatFromString

        public static boolean isFloatFromString​(java.lang.String string)
        Check whether the String can convert to Float
        Parameters:
        string - String value to check
        Returns:
        true if the string value is an float
        or false