public StoreLocation getByPosition(int rowID, int shelf, int position) { for (StoreLocation tmp : list) { if (tmp.getRow() == rowID && tmp.getShelf() == shelf && tmp.getPosition() == position) return tmp; } return null; }