Package com.insacosa.filtre

Examples of com.insacosa.filtre.InventoryFiltreList


                        //return o1.getBanys().compareTo(o2.getBanys());
                    }
                });
               
                Iterator<InventoryItem> iterator = inventoryItems.iterator();
                InventoryFiltreList filtreList = new InventoryFiltreList();
                filtreList.setFiltre(inventoryItems.get(0).getTipusStr()); // 2. representa sobre el que comparem
                //filtreList.setFiltre(inventoryItems.get(0).getHabitacions());
                while (iterator.hasNext()) {
                    InventoryItem item = iterator.next();
                    InventoryFiltreItem newItem = new InventoryFiltreItem();
                    itemToTipusItem(item, newItem);
                    // comparem per un determinat FILTRE
                    //(ex: agrupat per tipus d'inmoble, agrupats per #habitacions,
                    // agrupat per #banys,...)
                   
                   
                    if (!item.getTipusStr().equals(filtreList.getFiltre())) { // 3. representa sobre el que comparem
                    //if (!item.getHabitacions().equals(tipusList.getFiltre())) {
                        InventoryFiltreLists.add(filtreList);
                        filtreList = new InventoryFiltreList();
                        filtreList.setFiltre(item.getTipusStr())// 4. representa sobre el que comparem
                        //tipusList.setFiltre(item.getHabitacions()); 
                    }
                    filtreList.getFiltreItems().add(newItem);
                }
                InventoryFiltreLists.add(filtreList);
            }
        }
        return InventoryFiltreLists;
View Full Code Here

TOP

Related Classes of com.insacosa.filtre.InventoryFiltreList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.