Class ParamsUtils

java.lang.Object
com.mclds.plugins.customplugin.utils.ParamsUtils

public class ParamsUtils extends Object
  • Field Details

  • Constructor Details

    • ParamsUtils

      public ParamsUtils(String[] args)
  • Method Details

    • get

      public String get(String key, String defaultValue)
    • getInteger

      public int getInteger(String key, int defaultValue)
    • getBoolean

      public boolean getBoolean(String key, boolean defaultValue)
    • getDouble

      public double getDouble(String key, double defaultValue)
    • getFloat

      public float getFloat(String key, double defaultValue)
    • getLong

      public long getLong(String key, double defaultValue)
    • get

      public static String get(String[] args, String key, String defaultValue)
    • getInteger

      public static int getInteger(String[] args, String key, int defaultValue)
    • getBoolean

      public static boolean getBoolean(String[] args, String key, boolean defaultValue)
    • getDouble

      public static double getDouble(String[] args, String key, double defaultValue)
    • createTabComplete

      public static List<String> createTabComplete(String key, String... values)
    • createTabComplete

      public static List<String> createTabComplete(String key, List<String> values)
    • rest

      public static List<String> rest(int skip, String[] args)
      获取除了前面skip个参数之外的所有参数
      Parameters:
      skip - 跳过的参数个数
      args - 参数列表