Package com.sparc.knappsack.comparators

Examples of com.sparc.knappsack.comparators.RegionNameComparator


            model.addAttribute("deviceTypes", DeviceType.getAlliPad());
            List<RegionModel> regions = new ArrayList<RegionModel>();

            //Sort regions alphabetically in ascending order
            List<Region> sortedRegions = new ArrayList<Region>(domain.getRegions());
            Collections.sort(sortedRegions, new RegionNameComparator());
            for (Region region : sortedRegions) {
                RegionModel regionModel = regionService.createRegionModel(region);
                if (regionModel != null) {
                    regions.add(regionModel);
                }
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.comparators.RegionNameComparator

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.