public class Role extends PrincipalImpl
Constructor and Description |
---|
Role(String name)
Creates a new Role with a given name
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
This function returns true if the object passed matches the principal represented in this implementation
|
String |
getDescription() |
int |
hashCode()
Returns the hashcode for this Principal object
|
void |
setDescription(String description) |
getName, toString
public Role(String name)
public boolean equals(Object other)
PrincipalImpl
equals
in interface Principal
equals
in class PrincipalImpl
other
- the Principal to compare with.public int hashCode()
PrincipalImpl
hashCode
in interface Principal
hashCode
in class PrincipalImpl
public String getDescription()
public void setDescription(String description)
Copyright © 2018. All rights reserved.