Class Modes


  • public final class Modes
    extends java.lang.Object
    represent an individual Mode for running a COMMAND. It's a substitution for the old Mode enum we used in order to allow reuse of logic.
    • Constructor Summary

      Constructors 
      Constructor Description
      Modes​(java.util.Map<java.lang.String,​Command> modes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Command getCommand​(java.lang.String name)  
      java.lang.Iterable<java.lang.String> getModes()  
      • Methods inherited from class java.lang.Object

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

      • Modes

        public Modes​(java.util.Map<java.lang.String,​Command> modes)
    • Method Detail

      • getCommand

        public Command getCommand​(java.lang.String name)
      • getModes

        public java.lang.Iterable<java.lang.String> getModes()