|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.servermanager.AddeAccount
public class AddeAccount
Simplistic representation of ADDE accounting information. This is an immutable class.
Field Summary | |
---|---|
private String |
project
Project number (currently not limited to a numeric value). |
private String |
username
Username to hand off to the server. |
Constructor Summary | |
---|---|
AddeAccount(String user,
String proj)
Builds a new ADDE account object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether or not a given object is equivalent to this ADDE account. |
String |
friendlyString()
Returns a "human-friendly" representation of this accounting object. |
String |
getProject()
Get the project number associated with this account. |
String |
getUsername()
Get the username associated with this account. |
int |
hashCode()
Computes the hashcode of this ADDE account using the hashcodes of username and project . |
String |
toString()
Returns a string representation of this account. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String username
private final String project
Constructor Detail |
---|
public AddeAccount(String user, String proj)
user
- Username to store. Cannot be null
.proj
- Project number to store. Cannot be null
.
NullPointerException
- if user
or proj
is
null
.Method Detail |
---|
public String getUsername()
username
public String getProject()
project
public boolean equals(Object obj)
equals
in class Object
obj
- Object to test against.
obj
is equivalent to this ADDE account.public int hashCode()
username
and project
.
hashCode
in class Object
public String toString()
[AddeAccount@HASHCODE: username=..., project=...]
toString
in class Object
String
representation of this ADDE account.public String friendlyString()
USER / PROJ
.
String
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |