Module swim.args
Package swim.args

Class Opt

    • Method Detail

      • flag

        public char flag()
      • flag

        public Opt flag​(char flag)
      • arg

        public Opt arg​(Arg arg)
      • defs

        public int defs()
      • isDefined

        public boolean isDefined()
      • getArg

        public Arg getArg()
      • getArg

        public Arg getArg​(int index)
      • getValue

        public String getValue()
      • getValue

        public String getValue​(int index)
      • parse

        public int parse​(String[] params,
                         int paramIndex)
      • canEqual

        public boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • create

        public static Opt create​(String name,
                                 char flag)
      • create

        public static Opt create​(String name)