Back to project page Spidermine.
The source code is released under:
Copyright ? 2014 PEMapModder This software is open-source and everyone is welcome to share redistributions or modifications, as long as it is clearly specified that this project's original source is ...
If you think the Android project Spidermine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pemapmodder.spidermine.objects; // w w w .j a va2 s . com public class Command{ private final String name; private final CommandListener callback; public Command(String name, CommandListener callback){ this.name=name; this.callback=callback; } public String invoke(String[] params){ return this.callback.invoke(params); } public String getName() { return name; } @Override public boolean equals(Object other){ if(!(other instanceof Command)) return false; Command another = (Command) other; return another.getName().equalsIgnoreCase(this.getName()); } @Override public int hashCode(){ return this.name.hashCode(); } public static interface CommandListener{ public String invoke(String[] params); } }