
public final class GroupPrincipal extends Object implements Principal
Group| Constructor and Description |
|---|
GroupPrincipal(String group)
Constructs a new GroupPrincipal object with a supplied name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two GroupPrincipals are equal if their names are equal.
|
String |
getName()
Returns the name of the group principal.
|
int |
hashCode()
Returns the hashcode for this object.
|
String |
toString()
Returns a string representation of this object.
|
public GroupPrincipal(String group)
group - the wiki group; cannot be nullpublic String getName()
getName in interface PrincipalPrincipal.getName()public boolean equals(Object obj)
equals in interface Principalequals in class Objectobj - the object to compareObject.equals(java.lang.Object)public int hashCode()
hashCode in interface PrincipalhashCode in class ObjectObject.hashCode()Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.