Module de.carne

Class CmdLineAction

    • Constructor Summary

      Constructors 
      Constructor Description
      CmdLineAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmdLineAction arg​(java.lang.String arg)
      Adds an argument string that should trigger this CmdLineAction instance.
      boolean contains​(java.lang.String arg)
      Checks whether the submitted argument string is a trigger for this CmdLineAction instance.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmdLineAction

        public CmdLineAction()
    • Method Detail

      • arg

        public CmdLineAction arg​(java.lang.String arg)
        Adds an argument string that should trigger this CmdLineAction instance.
        Parameters:
        arg - the argument string to be associated with this CmdLineAction instance.
        Returns:
        the updated CmdLineAction instance.
      • contains

        public boolean contains​(java.lang.String arg)
        Checks whether the submitted argument string is a trigger for this CmdLineAction instance.
        Parameters:
        arg - the argument string to check.
        Returns:
        true if the argument string is associated with this CmdLineAction instance.
        See Also:
        arg(String)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object