All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andyshao.system.NoArgumentTask Maven / Gradle / Ivy

The newest version!
package com.github.andyshao.system;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Sep 10, 2015
* Encoding:UNIX UTF-8 * * @author Andy.Shao * */ public class NoArgumentTask implements Task { private volatile Task nextTask = Task.EMPTY_TASK; @Override public Task getNextTask() { return this.nextTask; } @Override public boolean isDuty(String[] args) { if (args == null || args.length == 0) return true; else return false; } @Override public void process(String[] args) { this.run(new String[] { HelpTask.KEY_WORDS }); } /** * set next task * @param nextTask next task */ public void setNextTask(Task nextTask) { this.nextTask = nextTask; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy