protected Role () {
}
// Initialization constructor
- protected Role (String username, String role) {
+ protected Role (final String username, final String role) {
// ---------------------------------------------
this.username = username;
this.role = role;
// Protected member functions
// ==============================================================================================================================
- protected void addRole (String role) {
+ protected void addRole (final String role) {
// ------------------------------------
this.role = this.role + "," + role;
}
return role;
}
- public boolean is (String name) {
+ public boolean is (final String name) {
// -------------------------------
return this.role.equals(name);
}
- public boolean isSame (Role other) {
+ public boolean isSame (final Role other) {
// ----------------------------------
return this.role.equals(other.role);
}
+
}
\ No newline at end of file