@Override public int hashCode() { int result = param.hashCode(); result = 31 * result + arg.hashCode(); return result; } }
public static Parameter of(String value) { for (Parameter p : Parameter.values()) { if (p.param.equals(value)) { return p; } } return null; } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Argument that = (Argument) o; return (this.type().equals(that.type()) && this.get().equals(that.get())); }