1 package net.sf.openrocket.gui.dialogs.motor.thrustcurve;
3 import net.sf.openrocket.motor.ThrustCurveMotor;
7 private final ThrustCurveMotor motor;
8 private final int index;
10 public MotorHolder(ThrustCurveMotor motor, int index) {
15 public ThrustCurveMotor getMotor() {
19 public int getIndex() {
24 public String toString() {
25 return motor.getDesignation();
29 public boolean equals(Object obj) {
30 if (!(obj instanceof MotorHolder))
32 MotorHolder other = (MotorHolder) obj;
33 return this.motor.equals(other.motor);
37 public int hashCode() {
38 return motor.hashCode();