Methods Summary |
---|
public boolean | equals(java.lang.Object o)Compares the specified Object with this
SolarisNumericGroupPrincipal
for equality. Returns true if the given object is also a
SolarisNumericGroupPrincipal and the two
SolarisNumericGroupPrincipals
have the same group identification number (GID).
if (o == null)
return false;
if (this == o)
return true;
if (!(o instanceof SolarisNumericGroupPrincipal))
return false;
SolarisNumericGroupPrincipal that = (SolarisNumericGroupPrincipal)o;
if (this.getName().equals(that.getName()) &&
this.isPrimaryGroup() == that.isPrimaryGroup())
return true;
return false;
|
public java.lang.String | getName()Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal .
return name;
|
public int | hashCode()Return a hash code for this SolarisNumericGroupPrincipal .
return toString().hashCode();
|
public boolean | isPrimaryGroup()Return whether this group identification number (GID) represents
the primary group to which this user belongs.
return primaryGroup;
|
public long | longValue()Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal as a long.
return ((new Long(name)).longValue());
|
public java.lang.String | toString()Return a string representation of this
SolarisNumericGroupPrincipal .
return((primaryGroup ?
rb.getString
("SolarisNumericGroupPrincipal [Primary Group]: ") + name :
rb.getString
("SolarisNumericGroupPrincipal [Supplementary Group]: ") + name));
|