User.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
xnap.plugin.gnutella.net |
![]() |
![]() |
XNap 2 |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
| Metric | Description | |
|---|---|---|
/*
* XNap
*
* A pure java file sharing client.
*
* See AUTHORS for copyright information.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package xnap.plugin.gnutella.net;
import xnap.net.AbstractUser;
import xnap.net.IBrowse;
import xnap.net.IChannel;
public class User extends AbstractUser {
//--- Constant(s) ---
//--- Data field(s) ---
//--- Constructor(s) ---
public User(String name)
{
super(name);
}
//--- Method(s) ---
public IBrowse getBrowse()
{
return null;
}
public IChannel getPrivateChannel()
{
return null;
}
public String toString()
{
return name;
}
public boolean equals(Object obj)
{
if (obj != null) {
if (obj instanceof User) {
User user = (User)obj;
return name.equals(user.getName());
}
}
return false;
}
}
The table below shows all metrics for User.java.
| Metric | Value | Description | |
|---|---|---|---|



