?? notfoundexception.java
字號:
package org.codehaus.xfire.aegis.inheritance.ws2.common.exception;
/**
* <br/>
*
* @author xfournet
*/
public class NotFoundException
extends Exception
{
private String m_id;
public NotFoundException()
{
}
public NotFoundException(String id)
{
m_id = id;
}
public String getId()
{
return m_id;
}
public void setId(String id)
{
m_id = id;
}
public String toString()
{
return "[" + getClass().getName() + "] id=" + m_id;
}
public boolean equals(Object o)
{
if (this == o)
{
return true;
}
if (o == null || getClass() != o.getClass())
{
return false;
}
final NotFoundException that = (NotFoundException) o;
if (getMessage() != null ? !getMessage().equals(that.getMessage())
: that.getMessage() != null)
{
return false;
}
if (m_id != null ? !m_id.equals(that.m_id) : that.m_id != null)
{
return false;
}
return true;
}
public int hashCode()
{
return (m_id != null ? m_id.hashCode() : 0);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -