Package de.ailis.xadrian.support

Examples of de.ailis.xadrian.support.ReverseIntegerComparator


     * @return The yield map
     */
    public SortedMap<Integer, Integer> getYieldsMap(final String wareId)
    {
        final SortedMap<Integer, Integer> yields =
            new TreeMap<Integer, Integer>(new ReverseIntegerComparator());

        // Iterate over all asteroids
        for (final Asteroid asteroid : getAsteroids())
        {
            // If this asteroid is not of the searched type then ignore it
View Full Code Here


            // If this asteroid is not of the searched type then ignore it
            if (!wareId.equals(asteroid.getWare().getId())) continue;

            yields.add(asteroid.getYield());
        }
        Collections.sort(yields, new ReverseIntegerComparator());
        return yields;
    }
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.support.ReverseIntegerComparator

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.