public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj;  if (!this.cmdpath.equals(that.cmdpath)) { return (false);
public boolean equals(Object obj) { if (obj instanceof CommandEnvironment) { CommandEnvironment that = (CommandEnvironment) obj;  if (command == null || that.command == null) {  if (command != that.command) return false; } else {  if (! this.command.equals(that.command)) return false;
public boolean equals(Object obj) {	if (!(obj instanceof CommandEnvironment)) {		return (false);	}	CommandEnvironment that = (CommandEnvironment)obj;		if (!this.cmdpath.equals(that.cmdpath)) {		return (false);	}	int len = this.argv.length;	if (len != that.argv.length) {		return (false);	}	for (int i = 0; i < len; i++) {		if (!this.argv[i].equals(that.argv[i])) {			return (false);		}	}	return (true);}