📄 country.java
字号:
package collections;
/**
* Title : Base Dict Class
* Description : here Description is the function of class, here maybe multirows
* @author <a href="mailto:sunpeng@china.freeborders">kevin</a>
* @Version 1.0
*/
/**
* Class description goes here.
* @version 1.0 2005-9-22
* @author kevin
*/
public class Country implements Comparable
{
private String name;
public Country(String n)
{
this.name = n;
}
/**
* @return Returns the name.
*/
public String getName()
{
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name)
{
this.name = name;
}
public int compareTo(Object obj)
{
Country c = (Country)obj;
return c.getName().compareTo(this.getName());
}
public int hashCode()
{
return this.getName().hashCode() ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -