package com.github.sbugat.ec2tools;

/**
 * Loaded instance order
 *
 * @author Sylvain Bugat
 */
public class InstanceOrder {

	public final String instanceId;

	public final OrderType orderType;

	public InstanceOrder( final String instanceIdArg, final String orderTypeArg ){

		instanceId = instanceIdArg;
		orderType = OrderType.valueOf( orderTypeArg );
	}

	public String toString() {
		return instanceId + ':' + orderType;
	}
}

@@ -58,19 +58,21 @@
 ce order
+.
 %0A *
+ 
 %0A * @aut
@@ -215,17 +215,16 @@
 ceOrder(
- 
 final St
@@ -268,18 +268,18 @@
 rTypeArg
- 
 )
+ 
 %7B%0A%0A%09%09ins
@@ -335,17 +335,16 @@
 valueOf(
- 
 orderTyp
@@ -351,16 +351,26 @@
 eArg
- 
 );%0A%09%7D%0A%0A
+%09@Override%0A
 %09pub
@@ -434,11 +434,423 @@
 Type;%0A%09%7D
+%0A%0A%09@Override%0A%09public boolean equals(final Object object) %7B%0A%0A%09%09if (this == object) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%0A%09%09if (object == null %7C%7C !InstanceOrder.class.isInstance(object)) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%0A%09%09final InstanceOrder instanceOrder = (InstanceOrder) object;%0A%0A%09%09if (instanceId != null && !instanceId.equals(instanceOrder.instanceId) %7C%7C orderType != instanceOrder.orderType) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%0A%09%09return true;%0A%09%7D
 %0A%7D%0A

Add equals