public class AddeAccount extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
project
Project number (currently not limited to a numeric value).
|
private java.lang.String |
username
Username to hand off to the server.
|
Constructor and Description |
---|
AddeAccount(java.lang.String user,
java.lang.String proj)
Builds a new ADDE account object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether or not a given object is equivalent to this ADDE
account.
|
java.lang.String |
friendlyString()
Returns a "human-friendly" representation of this accounting
object.
|
java.lang.String |
getProject()
Get the project number associated with this account.
|
java.lang.String |
getUsername()
Get the username associated with this account.
|
int |
hashCode()
|
java.lang.String |
toString()
Returns a string representation of this account.
|
private final java.lang.String username
private final java.lang.String project
public AddeAccount(java.lang.String user, java.lang.String proj)
user
- Username to store. Cannot be null
.proj
- Project number to store. Cannot be null
.java.lang.NullPointerException
- if user
or proj
is
null
.public java.lang.String getUsername()
username
public java.lang.String getProject()
project
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to test against.obj
is equivalent to this ADDE account.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
[AddeAccount@HASHCODE: username=..., project=...]
.toString
in class java.lang.Object
String
representation of this ADDE account.public java.lang.String friendlyString()
USER / PROJ
.String
.