Package logisticspipes.commands.exception

Examples of logisticspipes.commands.exception.DublicatedCommandException


  protected final void registerSubCommand(ICommandHandler newHandler) {
    List<String> newCommands = Arrays.asList(newHandler.getNames());
    for(ICommandHandler handler:subCommands) {
      for(String command:handler.getNames()) {
        if(newCommands.contains(command)) {
          throw new DublicatedCommandException();
        }
      }
    }
    subCommands.add(newHandler);
  }
View Full Code Here

TOP

Related Classes of logisticspipes.commands.exception.DublicatedCommandException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.