package com.paritytrading.parity.fix;

import java.util.ArrayList;
import java.util.List;

class Orders {

    private List<Order> orders;

    public Orders() {
        orders = new ArrayList<>();
    }

    public void add(Order order) {
        orders.add(order);
    }

    public Order findByClOrdID(String clOrdId) {
        for (int i = 0; i < orders.size(); i++) {
            Order order = orders.get(i);

            if (clOrdId.equals(order.getClOrdID()))
                return order;
        }

        return null;
    }

    public Order findByOrderEntryID(long orderEntryId) {
        for (int i = 0; i < orders.size(); i++) {
            Order order = orders.get(i);

            if (orderEntryId == order.getOrderEntryID())
                return order;
        }

        return null;
    }

    public void removeByOrderEntryID(long orderEntryId) {
        for (int i = 0; i < orders.size(); i++) {
            Order order = orders.get(i);

            if (orderEntryId == order.getOrderEntryID()) {
                orders.remove(i);
                break;
            }
        }
    }

}

@@ -133,31 +133,24 @@
 rders;%0A%0A    
-public 
 Orders() %7B%0A 
@@ -191,31 +191,24 @@
 %0A    %7D%0A%0A    
-public 
 void add(Ord
@@ -249,39 +249,32 @@
 er);%0A    %7D%0A%0A    
-public 
 Order findByClOr
@@ -512,23 +512,16 @@
  %7D%0A%0A    
-public 
 Order fi
@@ -784,15 +784,8 @@
     
-public 
 void

Clean up 'Orders'