Module swim.args
Package swim.args

Class Opt

  • All Implemented Interfaces:
    Cloneable, swim.codec.Debug

    public class Opt
    extends Object
    implements Cloneable, swim.codec.Debug
    • Constructor Detail

      • Opt

        public Opt​(String name,
                   char flag,
                   String desc,
                   swim.collections.FingerTrieSeq<Arg> args,
                   int defs)
    • Method Detail

      • flag

        public char flag()
      • flag

        public Opt flag​(char flag)
      • args

        public swim.collections.FingerTrieSeq<Arg> args()
      • 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 void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • of

        public static Opt of​(String name,
                             char flag)