public boolean equals(Object obj){
  if (obj instanceof CommandEnvironment) {
    CommandEnvironment env=(CommandEnvironment)obj;
    return ((command == null ? env.command == null : command.equals(env.command)) && Arrays.equals(options,env.options));
  }
 else {
    return false;
  }
}

public boolean equals ( Object obj ) { if ( obj instanceof CommandEnvironment ) { CommandEnvironment env = ( CommandEnvironment ) obj ; return ( ( command == null ? env . command == null : command . equals ( env . command ) ) && Arrays . equals ( options , env . options ) ) ; } else { return false ; } }
compares two command environments for content equality .
