|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.Host
Contains the location of a host on the network
Field Summary | |
private java.lang.String |
ipAddress
|
private int |
port
|
private int |
sharedFileCount
|
private int |
sharedFileSize
|
Constructor Summary | |
Host(java.lang.String ipAddress,
int port,
int sharedFileCount,
int sharedFileSize)
Constructs a Host |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Equals comparison |
(package private) java.lang.String |
getIPAddress()
Returns the address |
(package private) int |
getPort()
Returns the port |
(package private) int |
getSharedFileCount()
Return shared file count |
(package private) int |
getSharedFileSize()
Reurn the shared file size |
int |
hashCode()
Use the IP address for the hashcode |
java.lang.String |
toString()
Get text based host information |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String ipAddress
private int port
private int sharedFileCount
private int sharedFileSize
Constructor Detail |
public Host(java.lang.String ipAddress, int port, int sharedFileCount, int sharedFileSize)
ipAddress
- IP addressport
- portsharedFileCount
- count of shared filessharedFileSize
- total shared file size in KBMethod Detail |
java.lang.String getIPAddress()
int getPort()
int getSharedFileCount()
int getSharedFileSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |