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

📄 propuser.java

📁 用java 实现的IE browser适合于学者
💻 JAVA
字号:
/*
 * Created on 2004-8-25
 *
 * This Class is part of HengNgai Jewelry Group(Panyu)'s Product
 * 
 */
package com.hnjchina.securityManager;
import java.util.Comparator;

/**
 * @author fm
 * this class is used to store the SecurityUsers information
 * 
 * 
 */
public class PropUser implements Comparator{
	public int userID;
	public String userName;
	public String description;
	public String passWord;
	public int userType;
	public final static  Comparator comparator = new PropUser();
	
	public PropUser(){
		userID = 0;
		userName = "";
		description = "";
		passWord = "";
		userType = 0;
	}
	public PropUser(PropUser user){
		this.userID =user.userID;
		this.userName = new String(user.userName);
		this.description = new String(user.description);
		this.passWord = new String(user.passWord);
		this.userType = user.userType;
	}
	public String toString(){
		if (userID == 0){
			return "user " + userName;
		}else{
			return "userID = " + userID+"," +
					"userName = " + userName +","+
					"description = " + description+"," +
					"passWord = " + passWord +","+
					"userType = " + userType;
		}
	}
	public int compare(Object arg0, Object arg1) {
		PropUser user0,user1;
		user0 = (PropUser) arg0;
		user1 = (PropUser) arg1;
		if ((user0.userID>0 && user0.userID == user1.userID) || 
			user0.userName.equalsIgnoreCase(user1.userName)){
			return 0;			
		}else{
			return user0.userName.compareToIgnoreCase(user1.userName);
		}
	}
}

⌨️ 快捷键说明

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