Package io.sbk.utils

Class SbkUtils

java.lang.Object
io.sbk.utils.SbkUtils

public final class SbkUtils extends Object
  • Constructor Details

    • SbkUtils

      public SbkUtils()
  • Method Details

    • removeOptionArgsAndValues

      @Contract("null, _ -> new") @NotNull public static @NotNull String[] removeOptionArgsAndValues(String[] args, String[] opts)
    • removeOptionArgs

      @Contract("null, _ -> new") @NotNull public static @NotNull String[] removeOptionArgs(String[] args, String[] opts)
    • getArgValue

      public static String getArgValue(String[] args, String argName)
    • getClassName

      public static String getClassName(String[] args)
    • getLoggerName

      public static String getLoggerName(String[] args)
    • hasArg

      public static boolean hasArg(String[] args, String argName)
    • hasHelp

      public static boolean hasHelp(String[] args)
    • mapToArgs

      public static String[] mapToArgs(Map<String,String> map, boolean addArgPrefix)
    • argsToMap

      public static Map<String,String> argsToMap(String[] args, boolean removeArgPrefix)
    • mergeArgs

      public static String[] mergeArgs(String[] s1, String[] s2)