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, toStringpublic Role(String name)
public boolean equals(Object other)
PrincipalImplequals in interface Principalequals in class PrincipalImplother - the Principal to compare with.public int hashCode()
PrincipalImplhashCode in interface PrincipalhashCode in class PrincipalImplpublic String getDescription()
public void setDescription(String description)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.