Package elements
Class Member
java.lang.Object
elements.Member
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the provided login matches the member's login.getLogin()
Gets the login of the member.Gets the profile description of the member.boolean
isPassword
(String password) Checks if the provided password matches the member's password.toString()
Returns a string representation of the member.
-
Constructor Details
-
Member
Constructs a new Member with the specified login, password, and profile.- Parameters:
login
- the login of the memberpassword
- the password of the memberprofile
- the profile description of the member- Throws:
exceptions.BadEntryException
- if any of the parameters are invalid
-
-
Method Details
-
equals
Checks if the provided login matches the member's login.- Parameters:
login
- the login to check- Returns:
- true if the provided login matches the member's login, false otherwise
-
isPassword
Checks if the provided password matches the member's password.- Parameters:
password
- the password to check- Returns:
- true if the provided password matches the member's password, false otherwise
-
getLogin
-
getProfile
Gets the profile description of the member.- Returns:
- the profile description of the member
-
toString
-