home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / rmi / activation / ActivationGroupDesc$CommandEnvironment.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.1 KB  |  42 lines

  1. package java.rmi.activation;
  2.  
  3. import java.io.Serializable;
  4. import java.util.Arrays;
  5.  
  6. public class ActivationGroupDesc$CommandEnvironment implements Serializable {
  7.    private String command;
  8.    private String[] options;
  9.  
  10.    public ActivationGroupDesc$CommandEnvironment(String var1, String[] var2) {
  11.       this.command = var1;
  12.       if (var2 == null) {
  13.          this.options = null;
  14.       } else {
  15.          this.options = new String[var2.length];
  16.          System.arraycopy(var2, 0, this.options, 0, var2.length);
  17.       }
  18.  
  19.    }
  20.  
  21.    public String getCommandPath() {
  22.       return this.command;
  23.    }
  24.  
  25.    public String[] getCommandOptions() {
  26.       return this.options != null ? (String[])this.options.clone() : new String[0];
  27.    }
  28.  
  29.    public boolean equals(Object var1) {
  30.       if (var1 instanceof ActivationGroupDesc$CommandEnvironment) {
  31.          ActivationGroupDesc$CommandEnvironment var2 = (ActivationGroupDesc$CommandEnvironment)var1;
  32.          return (this.command == null ? var2.command == null : this.command.equals(var2.command)) && Arrays.equals(this.options, var2.options);
  33.       } else {
  34.          return false;
  35.       }
  36.    }
  37.  
  38.    public int hashCode() {
  39.       return this.command == null ? 0 : this.command.hashCode();
  40.    }
  41. }
  42.