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

📄 intkeyword.java

📁 支持并发访问的B+树
💻 JAVA
字号:
/* * Created on Jun 7, 2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package com.nay0648.ds.bplustree;/** * Description:<br> * the int keyword * @abstract * @keywords * @author nay0648<br> * if you have any questions,advices,suggests,or find any * bugs,please mail me: <a href="mailto:">nay0648@sina.com</a> * @version last modified:Jun 7, 2004 */class IntKeyword implements Keyword{private Integer value;	public IntKeyword(int value)	{		this.value=new Integer(value);	}		public int getValue()	{		return value.intValue();	}		public boolean equals(Object o)	{		IntKeyword key;				if(!(o instanceof IntKeyword)) return false;		else		{			key=(IntKeyword)o;			if(value.intValue()==key.getValue()) return true;			else return false;		}	}		public int compareTo(Object o)	{		IntKeyword key;				key=(IntKeyword)o;		if(value.intValue()<key.getValue()) return -1;		else if(value.intValue()==key.getValue()) return 0;		else return 1;	}		public String toString()	{		return value.toString();	}}

⌨️ 快捷键说明

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