Package javolution.util

Examples of javolution.util.FastList$FastListIterator


            }

            values.add(shipGroup);

            //set estimated ship dates
            FastList estimatedShipDates = FastList.newInstance();
            for (ShoppingCartItem item : shipItemInfo.keySet()) {
                Timestamp estimatedShipDate = item.getEstimatedShipDate();
                if (estimatedShipDate != null) {
                    estimatedShipDates.add(estimatedShipDate);
                }
            }
            if (estimatedShipDates.size() > 0) {
                Collections.sort(estimatedShipDates);
                Timestamp estimatedShipDate  = (Timestamp) estimatedShipDates.getLast();
                shipGroup.set("estimatedShipDate", estimatedShipDate);
            }

            //set estimated delivery dates
            FastList estimatedDeliveryDates = FastList.newInstance();
            for (ShoppingCartItem item : shipItemInfo.keySet()) {
                Timestamp estimatedDeliveryDate = item.getDesiredDeliveryDate();
                if (estimatedDeliveryDate != null) {
                    estimatedDeliveryDates.add(estimatedDeliveryDate);
                }
            }
            if (UtilValidate.isNotEmpty(estimatedDeliveryDates)) {
                Collections.sort(estimatedDeliveryDates);
                Timestamp estimatedDeliveryDate = (Timestamp) estimatedDeliveryDates.getLast();
                shipGroup.set("estimatedDeliveryDate", estimatedDeliveryDate);
            }

            // create the shipping estimate adjustments
            if (shipEstimate.compareTo(BigDecimal.ZERO) != 0) {
View Full Code Here


            }

            values.add(shipGroup);

            //set estimated ship dates
            FastList estimatedShipDates = FastList.newInstance();
            for (Map.Entry<Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedShipDate = item.getEstimatedShipDate();
                if (estimatedShipDate != null) {
                    estimatedShipDates.add(estimatedShipDate);
                }
            }
            if (estimatedShipDates.size() > 0) {
                Collections.sort(estimatedShipDates);
                Timestamp estimatedShipDate  = (Timestamp) estimatedShipDates.getLast();
                shipGroup.set("estimatedShipDate", estimatedShipDate);
            }

            //set estimated delivery dates
            FastList estimatedDeliveryDates = FastList.newInstance();
            for (Map.Entry <Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedDeliveryDate = item.getDesiredDeliveryDate();
                if (estimatedDeliveryDate != null) {
                    estimatedDeliveryDates.add(estimatedDeliveryDate);
                }
            }
            if (UtilValidate.isNotEmpty(estimatedDeliveryDates)) {
                Collections.sort(estimatedDeliveryDates);
                Timestamp estimatedDeliveryDate = (Timestamp) estimatedDeliveryDates.getLast();
                shipGroup.set("estimatedDeliveryDate", estimatedDeliveryDate);
            }

            // create the shipping estimate adjustments
            if (shipEstimate.compareTo(BigDecimal.ZERO) != 0) {
View Full Code Here

            }

            values.add(shipGroup);

            //set estimated ship dates
            FastList estimatedShipDates = FastList.newInstance();
            for (Map.Entry<Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedShipDate = item.getEstimatedShipDate();
                if (estimatedShipDate != null) {
                    estimatedShipDates.add(estimatedShipDate);
                }
            }
            if (estimatedShipDates.size() > 0) {
                Collections.sort(estimatedShipDates);
                Timestamp estimatedShipDate  = (Timestamp) estimatedShipDates.getLast();
                shipGroup.set("estimatedShipDate", estimatedShipDate);
            }

            //set estimated delivery dates
            FastList estimatedDeliveryDates = FastList.newInstance();
            for (Map.Entry <Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedDeliveryDate = item.getDesiredDeliveryDate();
                if (estimatedDeliveryDate != null) {
                    estimatedDeliveryDates.add(estimatedDeliveryDate);
                }
            }
            if (UtilValidate.isNotEmpty(estimatedDeliveryDates)) {
                Collections.sort(estimatedDeliveryDates);
                Timestamp estimatedDeliveryDate = (Timestamp) estimatedDeliveryDates.getLast();
                shipGroup.set("estimatedDeliveryDate", estimatedDeliveryDate);
            }

            // create the shipping estimate adjustments
            if (shipEstimate.compareTo(BigDecimal.ZERO) != 0) {
View Full Code Here

            }

            values.add(shipGroup);

            //set estimated ship dates
            FastList estimatedShipDates = FastList.newInstance();
            for (Map.Entry<Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedShipDate = item.getEstimatedShipDate();
                if (estimatedShipDate != null) {
                    estimatedShipDates.add(estimatedShipDate);
                }
            }
            if (estimatedShipDates.size() > 0) {
                Collections.sort(estimatedShipDates);
                Timestamp estimatedShipDate  = (Timestamp) estimatedShipDates.getLast();
                shipGroup.set("estimatedShipDate", estimatedShipDate);
            }

            //set estimated delivery dates
            FastList estimatedDeliveryDates = FastList.newInstance();
            for (Map.Entry <Object, Object> entry : shipItemInfo.entrySet()) {
                ShoppingCartItem item = (ShoppingCartItem) entry.getKey();
                Timestamp estimatedDeliveryDate = item.getDesiredDeliveryDate();
                if (estimatedDeliveryDate != null) {
                    estimatedDeliveryDates.add(estimatedDeliveryDate);
                }
            }
            if (UtilValidate.isNotEmpty(estimatedDeliveryDates)) {
                Collections.sort(estimatedDeliveryDates);
                Timestamp estimatedDeliveryDate = (Timestamp) estimatedDeliveryDates.getLast();
                shipGroup.set("estimatedDeliveryDate", estimatedDeliveryDate);
            }

            // create the shipping estimate adjustments
            if (shipEstimate.compareTo(BigDecimal.ZERO) != 0) {
View Full Code Here

            FileCopyUtils.copy(bytes, upload);
            StringBuilder sb = new StringBuilder(temp.getCanonicalPath()).append("//").append(upload.getName());
            pathToFile = sb.toString();
        } catch (IOException e) {
            Logger.getLogger(UploadController.class).error("exception:" + e.getMessage());
            return new FastList(0);
        }
        bytes = null;
        return bind((Long) params.get(Constant.ID_CENTRO), pathToFile);
    }
View Full Code Here

        return (Amministratore) getSqlMapClientTemplate().queryForObject("getAdminByUsername", username);
    }

    public List<AmministratoreLight> getAdminsByAlfabetico(String lettera, int pagina) throws DataAccessException {
        if (lettera.length() > 1) {
            return new FastList(0);
        } else {
            Map params = new FastMap();
            params.put("lettera", (new StringBuilder(lettera.toLowerCase().concat("%")).toString()));
            params.put("limit", offset);
            params.put("offset", pagina * offset);
 
View Full Code Here

        path = ctx.getRealPath(cartellaRiferimento);
    }

    public List<Email> deserializzaMail() {

        List<Email> coda = new FastList();
        try {

            File dirPathFile = new File(path + Constant.OsSlash + Constant.MAIL_QUEUE_SER);

            if (dirPathFile.exists()) {
View Full Code Here

    public List<Utente> getUtentiByAlfabetico(String lettera, long idCentro, int pagina) {

        // attenzione alle sql injection, deve arrivare una lettera di un solo
        // carattere
        if (lettera.length() > 1) {
            return new FastList(0);
        } else {
            Map params = new FastMap();
            params.put("letteraLower", (new StringBuilder(lettera.toLowerCase().concat("%")).toString()));
            params.put("letteraUpper", (new StringBuilder(lettera.toUpperCase().concat("%")).toString()));
            params.put("centro", idCentro);
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    private List getEntries() throws ParseException {

        List entries = new FastList();
        List<Annuncio> annunci = annunciService.getAnnunci(Constant.TYPE_FEED);
        SyndEntry entry;
        SyndContent description;
        for (Annuncio annuncio : annunci) {
            entry = new SyndEntryImpl();
            entry.setTitle(annuncio.getTitolo());
            // entry.setLink("http://www.jroller.com/page/desmax");
            entry.setPublishedDate(annuncio.getData());
            description = new SyndContentImpl();
            description.setType(Constant.FEED_TEXT);
            description.setValue(annuncio.getContenuto());
            entry.setDescription(description);
            entries.add(entry);
        }
        return entries;
    }
View Full Code Here

        Map lMap = new FastMap();
        lMap.put("MapItem1", 1);
        lMap.put("MapItem2", 2);
        lResponse.put("map", lMap);

        List lList = new FastList();
        lList.add("ListItem1");
        lList.add("ListItem2");
        lResponse.put("list", lList);

        // put a token into a token
        Token lToken = new Token();
        lToken.put("number", 1);
View Full Code Here

TOP

Related Classes of javolution.util.FastList$FastListIterator

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.