Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.DefaultedMap.entrySet()


      BlockData bd = BlockData.fromItemStack(item);
      count.put(bd, item.getAmount() + count.get(bd));
    }

    Map.Entry<BlockData, Integer> best = null;
    for (Map.Entry<BlockData, Integer> entry : count.entrySet())
      if (best == null || entry.getValue() > best.getValue()) best = entry;

    return best == null ? null : best.getKey();
  }
}
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.