|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.entityattrs.UidGid
public final class UidGid
Simple, immutable object that contains a user id (UID) and a group id (GID).
UID:s and GID:s are positive integer values.
| Constructor Summary | |
|---|---|
UidGid(int uid,
int gid)
Create a UidGid object without secondary GID:s |
|
UidGid(int uid,
int gid,
Collection<Integer> secondaryGids)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getPrimaryGid()
Get the primary GID. |
Set<Integer> |
getSecondaryGids()
|
int |
getUid()
Get the UID. |
int |
hashCode()
|
String |
toString()
|
static void |
validateGid(int gid)
Validate a GID. |
static void |
validateUid(int uid)
Validate a UID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UidGid(int uid,
int gid)
throws IllegalArgumentException
UidGid object without secondary GID:s
uid - The user id.gid - The primary group id.
IllegalArgumentException - If the UID or the GID is less than zero.
public UidGid(int uid,
int gid,
Collection<Integer> secondaryGids)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
|---|
public static void validateUid(int uid)
throws IllegalArgumentException
uid - The UID to validate.
IllegalArgumentException - If the UID is less than zero
public static void validateGid(int gid)
throws IllegalArgumentException
gid - The GID to validate.
IllegalArgumentException - If the GID is less than zeropublic int getUid()
public int getPrimaryGid()
public Set<Integer> getSecondaryGids()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||