⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itemref.java

📁 apriori演算法於JAVA環境下開發 用於資料探勘分類產生規則
💻 JAVA
字号:
/**
 * @(#)ItemRef.java
 *
 * This class stores the identifiers of each item, eg. '1' may represent "beer".
 *
 * @author Adrian Bright
 */

public class ItemRef
{
	private String itemID;
	private String itemName;

	/**
     * ItemRef Initialises the ItemRef.
     */
	public ItemRef()
	{
		itemID = new String();
		itemName = new String();
	}
	
	/**
     * ItemRef Initialises the ItemRef.
     * @param id The identifier for the item.
	 * @param name The corresponding name for the item.
     */
	public ItemRef(String id,String name)
	{
		itemID = id;
		itemName = name;
	}

	/**
     * setItemID Sets the item's ID.
     * @param id The identifier for the item.
     */
	public void setItemID(String id)
	{
		itemID = id;
	}

	/**
     * setItemName Sets the item's name.
     * @param name The name for the item.
     */
	public void setItemName(String name)
	{
		itemName = name;
	}

	/**
     * getItemID Returns the item's ID.
     * @return The ID for the item.
     */
	public String getItemID()
	{
		return itemID;
	}

	/**
     * getItemName Returns the item's name.
     * @return The ID for the item.
     */
	public String getItemName()
	{
		return itemName;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -