Creates a new Privilege object.. this.name = name;
this.name = name;
Compares equality... if(obj instanceof Privilege) { Privilege priv = (Privilege) obj; return getName().equals(priv.getName()); } else { return false; }
if(obj instanceof Privilege) { Privilege priv = (Privilege) obj; return getName().equals(priv.getName()); } else { return false; }
Returns the name of the name of the Privilege.returnThe name of the name of the Privilege. return name;
return name;
Returns the hashCode .. return name.hashCode();
return name.hashCode();