home *** CD-ROM | disk | FTP | other *** search
- package java.rmi.activation;
-
- import java.io.Serializable;
- import java.util.Arrays;
-
- public class ActivationGroupDesc$CommandEnvironment implements Serializable {
- private String command;
- private String[] options;
-
- public ActivationGroupDesc$CommandEnvironment(String var1, String[] var2) {
- this.command = var1;
- if (var2 == null) {
- this.options = null;
- } else {
- this.options = new String[var2.length];
- System.arraycopy(var2, 0, this.options, 0, var2.length);
- }
-
- }
-
- public String getCommandPath() {
- return this.command;
- }
-
- public String[] getCommandOptions() {
- return this.options != null ? (String[])this.options.clone() : new String[0];
- }
-
- public boolean equals(Object var1) {
- if (var1 instanceof ActivationGroupDesc$CommandEnvironment) {
- ActivationGroupDesc$CommandEnvironment var2 = (ActivationGroupDesc$CommandEnvironment)var1;
- return (this.command == null ? var2.command == null : this.command.equals(var2.command)) && Arrays.equals(this.options, var2.options);
- } else {
- return false;
- }
- }
-
- public int hashCode() {
- return this.command == null ? 0 : this.command.hashCode();
- }
- }
-