Class GroupFile.Entry
java.lang.Object
com.aoindustries.aoserv.daemon.posix.GroupFile.Entry
- Enclosing class:
GroupFile
Represents one line of the
/etc/group
file on a POSIX server.-
Constructor Summary
ConstructorDescriptionEntry
(Group.Name groupName, int gid, Set<User.Name> groupMembers) Constructs a group file entry given all the values. -
Method Summary
Modifier and TypeMethodDescription<A extends Appendable>
AappendTo
(A out) Appends thisGroupFile.Entry
as it would be written in/etc/group
, not including any newline.int
getGid()
The group id.The unmodifiable set of group members or an empty set if not set.The group name the entry is for.toString()
Gets thisGroupFile.Entry
as it would be written in/etc/group
, not including any newline.
-
Constructor Details
-
Entry
Constructs a group file entry given all the values.
-
-
Method Details
-
toString
Gets thisGroupFile.Entry
as it would be written in/etc/group
, not including any newline. -
appendTo
Appends thisGroupFile.Entry
as it would be written in/etc/group
, not including any newline.- Throws:
IOException
- See Also:
-
getGroupName
The group name the entry is for. -
getGid
public int getGid()The group id. -
getGroupMembers
The unmodifiable set of group members or an empty set if not set.
-