?? topicinfo.java
字號:
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package masteringrmi.chat.interfaces;
/**
* TopicInfo objects contain information about topics
*
* @see Topic
* @author Rickard 謆erg (rickard@dreambean.com)
* @version $Revision:$
*/
public class TopicInfo
implements java.io.Serializable
{
// Attributes ----------------------------------------------------
String name;
String description;
// Constructors --------------------------------------------------
public TopicInfo(String name, String description)
{
this.name = name;
this.description = description;
}
// Public --------------------------------------------------------
public String getName()
{
return name;
}
public String getDescription()
{
return description;
}
public String toString()
{
return name;
}
public boolean equals(Object obj)
{
return ((TopicInfo)obj).getName().equals(name);
}
public int hashCode()
{
return name.hashCode();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -