Package glide.utils

Class ArgsBuilder


  • public class ArgsBuilder
    extends java.lang.Object
    Helper class for collecting arbitrary type of arguments and stores them as an array of GlideString
    • Constructor Detail

      • ArgsBuilder

        public ArgsBuilder()
    • Method Detail

      • add

        public <ArgType> ArgsBuilder add​(ArgType[] args)
      • add

        public <ArgType> ArgsBuilder add​(ArgType arg)
      • addIf

        public <ArgType> ArgsBuilder addIf​(ArgType[] args,
                                           boolean condition)
        Append args to the list of argument only if condition is true
      • addIf

        public <ArgType> ArgsBuilder addIf​(ArgType arg,
                                           boolean condition)
        Append arg to the list of argument only if condition is true
      • add

        public ArgsBuilder add​(java.lang.String[] args)
      • checkTypeOrThrow

        public static <ArgType> void checkTypeOrThrow​(ArgType arg)
      • checkTypeOrThrow

        public static <ArgType> void checkTypeOrThrow​(ArgType[] args)
      • checkTypeOrThrow

        public static <ArgType> void checkTypeOrThrow​(java.util.Map<ArgType,​ArgType> argsMap)
      • newArgsBuilder

        public static ArgsBuilder newArgsBuilder()