Examples of ReverseIntegerComparator


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

Examples of de.ailis.xadrian.support.ReverseIntegerComparator

            // 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
Copyright © 2018 www.massapi.com. 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.