Package org.pokenet.client.backend.entity

Examples of org.pokenet.client.backend.entity.Item


   * @param name
   * @return
   */
  public Item getItem(String name) {
    Iterator<Item> it = m_items.values().iterator();
    Item i;
    while(it.hasNext()) {
      i = it.next();
      if(i.getName().equalsIgnoreCase(name))
        return i;
    }
    return null;
  }
View Full Code Here


   */
  public static List<Item> getCategoryItems(String category) {
    List<Item> itemList = new ArrayList<Item>();
    for(int i=0;i<=m_instance.m_items.size();i++){
      try{
        Item item = m_instance.m_items.get(i);
        if(item.getCategory().equals(category))
          itemList.add(item);
      }catch(Exception e){}
    }
    return itemList;
  }
View Full Code Here

TOP

Related Classes of org.pokenet.client.backend.entity.Item

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.