Item.java :  » XML » pirka » org » pirkaengine » core » Java Open Source

Java Open Source » XML » pirka 
pirka » org » pirkaengine » core » Item.java
package org.pirkaengine.core;

import java.text.DecimalFormat;
import java.util.Date;

public class Item {

    public int id;
    public String name;
    public Category category;
    public int price;
    public String description;
    public boolean sale;
    private String privateValue;
    public Date date;

    public String getName() {
        return name;
    }

    public int getPrice() {
        return price;
    }

    public Category getCategory() {
        return category;
    }
    
    public String labeledPrice() {
        return new DecimalFormat("###,##0").format(this.price);
    }

    @SuppressWarnings("unused")
  private String getPrivateValue() {
        return privateValue;
    }
    
    public Object getNullValue() {
        return null;
    }
   
    public Object methodNull() {
        return null;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.