Class AddeAccount
java.lang.Object
edu.wisc.ssec.mcidasv.servermanager.AddeAccount
Simplistic representation of ADDE accounting information. This is an
immutable class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether or not a given object is equivalent to this ADDE account.Returns a "human-friendly" representation of this accounting object.Get the project number associated with this account.Get the username associated with this account.int
hashCode()
toString()
Returns a string representation of this account.
-
Field Details
-
username
Username to hand off to the server. -
project
Project number (currently not limited to a numeric value).
-
-
Constructor Details
-
AddeAccount
Builds a new ADDE account object.- Parameters:
user
- Username to store. Cannot benull
.proj
- Project number to store. Cannot benull
.- Throws:
NullPointerException
- ifuser
orproj
isnull
.
-
-
Method Details
-
getUsername
Get the username associated with this account.- Returns:
username
-
getProject
Get the project number associated with this account.- Returns:
project
-
equals
Determines whether or not a given object is equivalent to this ADDE account. Currently the username and project number are case sensitive, though this is likely to change. -
hashCode
-
toString
Returns a string representation of this account. The formatting of this string is subject to change, but currently looks like[AddeAccount@HASHCODE: username=..., project=...]
. -
friendlyString
Returns a "human-friendly" representation of this accounting object. Currently looks likeUSER / PROJ
.- Returns:
- Friendly accounting detail
String
.
-