org.apache.hadoop.security
Class Group
java.lang.Object
org.apache.hadoop.security.Group
- All Implemented Interfaces:
- Principal
public class Group
- extends Object
- implements Principal
A group to which a user belongs to.
Constructor Summary |
Group(String group)
Create a new Group with the given groupname. |
Group
public Group(String group)
- Create a new
Group
with the given groupname.
- Parameters:
group
- group name
getName
public String getName()
- Specified by:
getName
in interface Principal
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Principal
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Principal
- Overrides:
equals
in class Object
Copyright © 2009 The Apache Software Foundation