org.apache.hadoop.security
Class Group

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

public Group(String group)
Create a new Group with the given groupname.

Parameters:
group - group name
Method Detail

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