cn.com.cjf.entity.Char Maven / Gradle / Ivy
package cn.com.cjf.entity;
import java.io.Serializable;
/**
* ???ļ????ַ????????ַ? ӳ?????
* @author saiya [email protected]
* @lastEdit 2008-10-28
*
*/
public final class Char implements Serializable{
/**
* ????ID
*/
private static final long serialVersionUID = -3712732188408051103L;
/**
* ???췽??
* @param jChar ?????ַ?
* @param fChar ?????ַ?
*/
public Char(char jChar , char fChar){
this.jId=(int)jChar;
this.jChar=jChar;
this.fId=(int)fChar;
this.fChar=fChar;
}
/**
* ?????ַ?ID ?? ͨ?? char-int ת??????
*/
public int jId=0;
/**
* ?????ַ?
*/
public char jChar=0;
/**
* ?????ַ?ID ?? ͨ?? char-int ת??????
*/
public int fId=0;
/**
* ?????ַ?
*/
public char fChar=0;
/**
* ??д??equals????
*/
public boolean equals(Object obj){
if(obj==null){
return false;
}
if(obj instanceof Char){
if(((Char)obj).jId == this.jId && ((Char)obj).fId==this.fId){
return true;
}
}
return false;
}
/**
* ??д??hashCode????
*/
public int hashCode() {
return this.jId + this.fId;
}
/**
* ??д??toString????
*/
public String toString() {
return this.jChar+":"+this.fChar;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy