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 null
public String getName()
getName
in interface Principal
Principal.getName()
public boolean equals(Object obj)
equals
in interface Principal
equals
in class Object
obj
- the object to compareObject.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
Object.hashCode()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.